]> git.proxmox.com Git - rustc.git/blame - src/test/ui/coherence/coherence-conflicting-negative-trait-impl.old.stderr
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / coherence / coherence-conflicting-negative-trait-impl.old.stderr
CommitLineData
b7449926 1error[E0119]: conflicting implementations of trait `std::marker::Send` for type `TestType<_>`:
0731742a 2 --> $DIR/coherence-conflicting-negative-trait-impl.rs:13:1
b7449926
XL
3 |
4LL | unsafe impl<T: MyTrait+'static> Send for TestType<T> {}
5 | ---------------------------------------------------- first implementation here
6LL |
7LL | impl<T: MyTrait> !Send for TestType<T> {}
8 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `TestType<_>`
9
10error[E0119]: conflicting implementations of trait `std::marker::Send` for type `TestType<i32>`:
0731742a 11 --> $DIR/coherence-conflicting-negative-trait-impl.rs:19:1
b7449926
XL
12 |
13LL | unsafe impl<T:'static> Send for TestType<T> {}
14 | ------------------------------------------- first implementation here
15LL |
16LL | impl !Send for TestType<i32> {}
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `TestType<i32>`
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0119`.