]> git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/negative-impls/negative-default-impls.stderr
New upstream version 1.49.0~beta.4+dfsg1
[rustc.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 = help: consider using `min_specialization` instead, which is more stable and complete
10
11 error[E0750]: negative impls cannot be default impls
12 --> $DIR/negative-default-impls.rs:9:1
13 |
14 LL | default impl !MyTrait for u32 {}
15 | ^^^^^^^ ^
16
17 error: aborting due to previous error; 1 warning emitted
18
19 For more information about this error, try `rustc --explain E0750`.