]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/negative-impls/negative-default-impls.stderr
warn against 'specialization' feature
[rust.git] / src / test / ui / traits / negative-impls / negative-default-impls.stderr
1 warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
2   --> $DIR/negative-default-impls.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[E0750]: negative impls cannot be default impls
11   --> $DIR/negative-default-impls.rs:9:1
12    |
13 LL | default impl !MyTrait for u32 {}
14    | ^^^^^^^      ^
15
16 error: aborting due to previous error; 1 warning emitted
17
18 For more information about this error, try `rustc --explain E0750`.