Fix UI tests for negative polarity implementations of traits
This commit is contained in:
parent
3c4bc8c8ad
commit
859463b869
@ -12,7 +12,6 @@ LL | type U = str;
|
|||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<&T as Clone>
|
<&T as Clone>
|
||||||
<&mut T as Clone>
|
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@ LL | fn f<'a, T: X<'a> + ?Sized>(x: &<T as X<'a>>::U) {
|
|||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<&T as Clone>
|
<&T as Clone>
|
||||||
<&mut T as Clone>
|
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@ LL | type V = str;
|
|||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<&T as Clone>
|
<&T as Clone>
|
||||||
<&mut T as Clone>
|
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@ LL | for<'b> <T as Z<'b, u16>>::W: Clone,
|
|||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<&T as Clone>
|
<&T as Clone>
|
||||||
<&mut T as Clone>
|
|
||||||
|
|
||||||
error[E0277]: the trait bound `for<'b> <u16 as Z<'b, u16>>::W: Clone` is not satisfied
|
error[E0277]: the trait bound `for<'b> <u16 as Z<'b, u16>>::W: Clone` is not satisfied
|
||||||
--> $DIR/hr-associated-type-bound-param-2.rs:16:14
|
--> $DIR/hr-associated-type-bound-param-2.rs:16:14
|
||||||
@ -28,7 +27,6 @@ LL | type W = str;
|
|||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<&T as Clone>
|
<&T as Clone>
|
||||||
<&mut T as Clone>
|
|
||||||
|
|
||||||
error[E0277]: the trait bound `for<'b> <u16 as Z<'b, u16>>::W: Clone` is not satisfied
|
error[E0277]: the trait bound `for<'b> <u16 as Z<'b, u16>>::W: Clone` is not satisfied
|
||||||
--> $DIR/hr-associated-type-bound-param-2.rs:4:8
|
--> $DIR/hr-associated-type-bound-param-2.rs:4:8
|
||||||
@ -44,7 +42,6 @@ LL | for<'b> <T as Z<'b, u16>>::W: Clone,
|
|||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<&T as Clone>
|
<&T as Clone>
|
||||||
<&mut T as Clone>
|
|
||||||
|
|
||||||
error: aborting due to 3 previous errors
|
error: aborting due to 3 previous errors
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@ LL | type U = str;
|
|||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<&T as Clone>
|
<&T as Clone>
|
||||||
<&mut T as Clone>
|
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@ LL | type U = str;
|
|||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<&T as Clone>
|
<&T as Clone>
|
||||||
<&mut T as Clone>
|
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@ LL | type U = str;
|
|||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<&T as Clone>
|
<&T as Clone>
|
||||||
<&mut T as Clone>
|
|
||||||
|
|
||||||
error[E0277]: the trait bound `for<'b> <Vec<T> as X<'b, Vec<T>>>::U: Clone` is not satisfied
|
error[E0277]: the trait bound `for<'b> <Vec<T> as X<'b, Vec<T>>>::U: Clone` is not satisfied
|
||||||
--> $DIR/hr-associated-type-bound-param-5.rs:27:14
|
--> $DIR/hr-associated-type-bound-param-5.rs:27:14
|
||||||
@ -28,7 +27,6 @@ LL | type U = str;
|
|||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<&T as Clone>
|
<&T as Clone>
|
||||||
<&mut T as Clone>
|
|
||||||
|
|
||||||
error[E0277]: the trait bound `for<'b> <Vec<T> as X<'b, Vec<T>>>::U: Clone` is not satisfied
|
error[E0277]: the trait bound `for<'b> <Vec<T> as X<'b, Vec<T>>>::U: Clone` is not satisfied
|
||||||
--> $DIR/hr-associated-type-bound-param-5.rs:33:14
|
--> $DIR/hr-associated-type-bound-param-5.rs:33:14
|
||||||
@ -44,7 +42,6 @@ LL | type U = str;
|
|||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<&T as Clone>
|
<&T as Clone>
|
||||||
<&mut T as Clone>
|
|
||||||
|
|
||||||
error[E0277]: the trait bound `for<'b> <Box<T> as X<'b, Box<T>>>::U: Clone` is not satisfied
|
error[E0277]: the trait bound `for<'b> <Box<T> as X<'b, Box<T>>>::U: Clone` is not satisfied
|
||||||
--> $DIR/hr-associated-type-bound-param-5.rs:33:14
|
--> $DIR/hr-associated-type-bound-param-5.rs:33:14
|
||||||
@ -60,7 +57,6 @@ LL | type U = str;
|
|||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<&T as Clone>
|
<&T as Clone>
|
||||||
<&mut T as Clone>
|
|
||||||
|
|
||||||
error: aborting due to 4 previous errors
|
error: aborting due to 4 previous errors
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@ LL | type U = str;
|
|||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<&T as Clone>
|
<&T as Clone>
|
||||||
<&mut T as Clone>
|
|
||||||
|
|
||||||
error[E0277]: the trait bound `for<'b> T: X<'b, T>` is not satisfied
|
error[E0277]: the trait bound `for<'b> T: X<'b, T>` is not satisfied
|
||||||
--> $DIR/hr-associated-type-bound-param-6.rs:12:12
|
--> $DIR/hr-associated-type-bound-param-6.rs:12:12
|
||||||
|
@ -10,8 +10,6 @@ LL | async fn bar() {
|
|||||||
LL | is_qux(bar());
|
LL | is_qux(bar());
|
||||||
| ^^^^^^ within `impl Future`, the trait `Qux` is not implemented for `Foo`
|
| ^^^^^^ within `impl Future`, the trait `Qux` is not implemented for `Foo`
|
||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
|
||||||
<Foo as Qux>
|
|
||||||
note: future does not implement `Qux` as this value is used across an await
|
note: future does not implement `Qux` as this value is used across an await
|
||||||
--> $DIR/issue-64130-3-other.rs:18:5
|
--> $DIR/issue-64130-3-other.rs:18:5
|
||||||
|
|
|
|
||||||
|
@ -7,8 +7,6 @@ LL | fn is_mytrait<T: MyTrait>() {}
|
|||||||
LL | is_mytrait::<(MyS2, MyS)>();
|
LL | is_mytrait::<(MyS2, MyS)>();
|
||||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ within `(MyS2, MyS)`, the trait `MyTrait` is not implemented for `MyS2`
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ within `(MyS2, MyS)`, the trait `MyTrait` is not implemented for `MyS2`
|
||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
|
||||||
<MyS2 as MyTrait>
|
|
||||||
= note: required because it appears within the type `(MyS2, MyS)`
|
= note: required because it appears within the type `(MyS2, MyS)`
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
@ -6,9 +6,6 @@ LL | fn is_mytrait<T: MyTrait>() {}
|
|||||||
...
|
...
|
||||||
LL | is_mytrait::<MyS2>();
|
LL | is_mytrait::<MyS2>();
|
||||||
| ^^^^ the trait `MyTrait` is not implemented for `MyS2`
|
| ^^^^ the trait `MyTrait` is not implemented for `MyS2`
|
||||||
|
|
|
||||||
= help: the following implementations were found:
|
|
||||||
<MyS2 as MyTrait>
|
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
@ -6,9 +6,6 @@ LL | fn is_my_trait<T: MyTrait>() {}
|
|||||||
...
|
...
|
||||||
LL | is_my_trait::<ThisImplsUnsafeTrait>();
|
LL | is_my_trait::<ThisImplsUnsafeTrait>();
|
||||||
| ^^^^^^^^^^^^^^^^^^^^ the trait `MyTrait` is not implemented for `ThisImplsUnsafeTrait`
|
| ^^^^^^^^^^^^^^^^^^^^ the trait `MyTrait` is not implemented for `ThisImplsUnsafeTrait`
|
||||||
|
|
|
||||||
= help: the following implementations were found:
|
|
||||||
<ThisImplsUnsafeTrait as MyTrait>
|
|
||||||
|
|
||||||
error[E0277]: the trait bound `ThisImplsTrait: MyUnsafeTrait` is not satisfied
|
error[E0277]: the trait bound `ThisImplsTrait: MyUnsafeTrait` is not satisfied
|
||||||
--> $DIR/typeck-default-trait-impl-negation.rs:25:26
|
--> $DIR/typeck-default-trait-impl-negation.rs:25:26
|
||||||
@ -18,9 +15,6 @@ LL | fn is_my_unsafe_trait<T: MyUnsafeTrait>() {}
|
|||||||
...
|
...
|
||||||
LL | is_my_unsafe_trait::<ThisImplsTrait>();
|
LL | is_my_unsafe_trait::<ThisImplsTrait>();
|
||||||
| ^^^^^^^^^^^^^^ the trait `MyUnsafeTrait` is not implemented for `ThisImplsTrait`
|
| ^^^^^^^^^^^^^^ the trait `MyUnsafeTrait` is not implemented for `ThisImplsTrait`
|
||||||
|
|
|
||||||
= help: the following implementations were found:
|
|
||||||
<ThisImplsTrait as MyUnsafeTrait>
|
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
error: aborting due to 2 previous errors
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user