Skip to content

Commit 859463b

Browse files
Fix UI tests for negative polarity implementations of traits
1 parent 3c4bc8c commit 859463b

12 files changed

+0
-26
lines changed

src/test/ui/associated-types/hr-associated-type-bound-1.stderr

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ LL | type U = str;
1212
|
1313
= help: the following implementations were found:
1414
<&T as Clone>
15-
<&mut T as Clone>
1615

1716
error: aborting due to previous error
1817

src/test/ui/associated-types/hr-associated-type-bound-object.stderr

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ LL | fn f<'a, T: X<'a> + ?Sized>(x: &<T as X<'a>>::U) {
1212
|
1313
= help: the following implementations were found:
1414
<&T as Clone>
15-
<&mut T as Clone>
1615

1716
error: aborting due to previous error
1817

src/test/ui/associated-types/hr-associated-type-bound-param-1.stderr

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ LL | type V = str;
1212
|
1313
= help: the following implementations were found:
1414
<&T as Clone>
15-
<&mut T as Clone>
1615

1716
error: aborting due to previous error
1817

src/test/ui/associated-types/hr-associated-type-bound-param-2.stderr

-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ LL | for<'b> <T as Z<'b, u16>>::W: Clone,
1212
|
1313
= help: the following implementations were found:
1414
<&T as Clone>
15-
<&mut T as Clone>
1615

1716
error[E0277]: the trait bound `for<'b> <u16 as Z<'b, u16>>::W: Clone` is not satisfied
1817
--> $DIR/hr-associated-type-bound-param-2.rs:16:14
@@ -28,7 +27,6 @@ LL | type W = str;
2827
|
2928
= help: the following implementations were found:
3029
<&T as Clone>
31-
<&mut T as Clone>
3230

3331
error[E0277]: the trait bound `for<'b> <u16 as Z<'b, u16>>::W: Clone` is not satisfied
3432
--> $DIR/hr-associated-type-bound-param-2.rs:4:8
@@ -44,7 +42,6 @@ LL | for<'b> <T as Z<'b, u16>>::W: Clone,
4442
|
4543
= help: the following implementations were found:
4644
<&T as Clone>
47-
<&mut T as Clone>
4845

4946
error: aborting due to 3 previous errors
5047

src/test/ui/associated-types/hr-associated-type-bound-param-3.stderr

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ LL | type U = str;
1212
|
1313
= help: the following implementations were found:
1414
<&T as Clone>
15-
<&mut T as Clone>
1615

1716
error: aborting due to previous error
1817

src/test/ui/associated-types/hr-associated-type-bound-param-4.stderr

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ LL | type U = str;
1212
|
1313
= help: the following implementations were found:
1414
<&T as Clone>
15-
<&mut T as Clone>
1615

1716
error: aborting due to previous error
1817

src/test/ui/associated-types/hr-associated-type-bound-param-5.stderr

-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ LL | type U = str;
1212
|
1313
= help: the following implementations were found:
1414
<&T as Clone>
15-
<&mut T as Clone>
1615

1716
error[E0277]: the trait bound `for<'b> <Vec<T> as X<'b, Vec<T>>>::U: Clone` is not satisfied
1817
--> $DIR/hr-associated-type-bound-param-5.rs:27:14
@@ -28,7 +27,6 @@ LL | type U = str;
2827
|
2928
= help: the following implementations were found:
3029
<&T as Clone>
31-
<&mut T as Clone>
3230

3331
error[E0277]: the trait bound `for<'b> <Vec<T> as X<'b, Vec<T>>>::U: Clone` is not satisfied
3432
--> $DIR/hr-associated-type-bound-param-5.rs:33:14
@@ -44,7 +42,6 @@ LL | type U = str;
4442
|
4543
= help: the following implementations were found:
4644
<&T as Clone>
47-
<&mut T as Clone>
4845

4946
error[E0277]: the trait bound `for<'b> <Box<T> as X<'b, Box<T>>>::U: Clone` is not satisfied
5047
--> $DIR/hr-associated-type-bound-param-5.rs:33:14
@@ -60,7 +57,6 @@ LL | type U = str;
6057
|
6158
= help: the following implementations were found:
6259
<&T as Clone>
63-
<&mut T as Clone>
6460

6561
error: aborting due to 4 previous errors
6662

src/test/ui/associated-types/hr-associated-type-bound-param-6.stderr

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ LL | type U = str;
1212
|
1313
= help: the following implementations were found:
1414
<&T as Clone>
15-
<&mut T as Clone>
1615

1716
error[E0277]: the trait bound `for<'b> T: X<'b, T>` is not satisfied
1817
--> $DIR/hr-associated-type-bound-param-6.rs:12:12

src/test/ui/async-await/issue-64130-3-other.stderr

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ LL | async fn bar() {
1010
LL | is_qux(bar());
1111
| ^^^^^^ within `impl Future`, the trait `Qux` is not implemented for `Foo`
1212
|
13-
= help: the following implementations were found:
14-
<Foo as Qux>
1513
note: future does not implement `Qux` as this value is used across an await
1614
--> $DIR/issue-64130-3-other.rs:18:5
1715
|

src/test/ui/auto-traits/typeck-default-trait-impl-constituent-types-2.stderr

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ LL | fn is_mytrait<T: MyTrait>() {}
77
LL | is_mytrait::<(MyS2, MyS)>();
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^ within `(MyS2, MyS)`, the trait `MyTrait` is not implemented for `MyS2`
99
|
10-
= help: the following implementations were found:
11-
<MyS2 as MyTrait>
1210
= note: required because it appears within the type `(MyS2, MyS)`
1311

1412
error: aborting due to previous error

src/test/ui/auto-traits/typeck-default-trait-impl-constituent-types.stderr

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ LL | fn is_mytrait<T: MyTrait>() {}
66
...
77
LL | is_mytrait::<MyS2>();
88
| ^^^^ the trait `MyTrait` is not implemented for `MyS2`
9-
|
10-
= help: the following implementations were found:
11-
<MyS2 as MyTrait>
129

1310
error: aborting due to previous error
1411

src/test/ui/auto-traits/typeck-default-trait-impl-negation.stderr

-6
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ LL | fn is_my_trait<T: MyTrait>() {}
66
...
77
LL | is_my_trait::<ThisImplsUnsafeTrait>();
88
| ^^^^^^^^^^^^^^^^^^^^ the trait `MyTrait` is not implemented for `ThisImplsUnsafeTrait`
9-
|
10-
= help: the following implementations were found:
11-
<ThisImplsUnsafeTrait as MyTrait>
129

1310
error[E0277]: the trait bound `ThisImplsTrait: MyUnsafeTrait` is not satisfied
1411
--> $DIR/typeck-default-trait-impl-negation.rs:25:26
@@ -18,9 +15,6 @@ LL | fn is_my_unsafe_trait<T: MyUnsafeTrait>() {}
1815
...
1916
LL | is_my_unsafe_trait::<ThisImplsTrait>();
2017
| ^^^^^^^^^^^^^^ the trait `MyUnsafeTrait` is not implemented for `ThisImplsTrait`
21-
|
22-
= help: the following implementations were found:
23-
<ThisImplsTrait as MyUnsafeTrait>
2418

2519
error: aborting due to 2 previous errors
2620

0 commit comments

Comments
 (0)