]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/coherence-conflicting-negative-trait-impl.re.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / coherence / coherence-conflicting-negative-trait-impl.re.stderr
1 error[E0119]: conflicting implementations of trait `std::marker::Send` for type `TestType<_>`:
2   --> $DIR/coherence-conflicting-negative-trait-impl.rs:13:1
3    |
4 LL | unsafe impl<T: MyTrait+'static> Send for TestType<T> {}
5    | ---------------------------------------------------- first implementation here
6 LL | 
7 LL | impl<T: MyTrait> !Send for TestType<T> {}
8    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `TestType<_>`
9
10 error[E0119]: conflicting implementations of trait `std::marker::Send` for type `TestType<i32>`:
11   --> $DIR/coherence-conflicting-negative-trait-impl.rs:19:1
12    |
13 LL | unsafe impl<T:'static> Send for TestType<T> {}
14    | ------------------------------------------- first implementation here
15 LL | 
16 LL | impl !Send for TestType<i32> {}
17    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `TestType<i32>`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0119`.