2018-08-08 07:28:26 -05:00
|
|
|
error[E0119]: conflicting implementations of trait `std::marker::Send` for type `TestType<_>`:
|
2020-01-25 14:30:19 -06:00
|
|
|
--> $DIR/coherence-conflicting-negative-trait-impl.rs:11:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | unsafe impl<T: MyTrait+'static> Send for TestType<T> {}
|
|
|
|
| ---------------------------------------------------- first implementation here
|
|
|
|
LL |
|
|
|
|
LL | impl<T: MyTrait> !Send for TestType<T> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `TestType<_>`
|
|
|
|
|
2020-01-25 14:30:19 -06:00
|
|
|
error[E0119]: conflicting implementations of trait `std::marker::Send` for type `TestType<_>`:
|
|
|
|
--> $DIR/coherence-conflicting-negative-trait-impl.rs:14:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2020-01-25 14:30:19 -06:00
|
|
|
LL | unsafe impl<T: MyTrait+'static> Send for TestType<T> {}
|
|
|
|
| ---------------------------------------------------- first implementation here
|
|
|
|
...
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | unsafe impl<T:'static> Send for TestType<T> {}
|
2020-01-25 14:30:19 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `TestType<_>`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0119`.
|