]> git.lizzy.rs Git - rust.git/blob - src/test/ui/specialization/specialization-overlap-negative.stderr
warn against 'specialization' feature
[rust.git] / src / test / ui / specialization / specialization-overlap-negative.stderr
1 warning: the feature `specialization` is incomplete and may be unsafe to use and/or cause compiler crashes
2   --> $DIR/specialization-overlap-negative.rs:2:12
3    |
4 LL | #![feature(specialization)]
5    |            ^^^^^^^^^^^^^^
6    |
7    = note: `#[warn(incomplete_features)]` on by default
8    = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9
10 error[E0751]: found both positive and negative implementation of trait `std::marker::Send` for type `TestType<_>`:
11   --> $DIR/specialization-overlap-negative.rs:9:1
12    |
13 LL | unsafe impl<T: Clone> Send for TestType<T> {}
14    | ------------------------------------------ positive implementation here
15 LL | impl<T: MyTrait> !Send for TestType<T> {}
16    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ negative implementation here
17
18 error: aborting due to previous error; 1 warning emitted
19
20 For more information about this error, try `rustc --explain E0751`.