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