1 error: inherent impls cannot be `default`
2 --> $DIR/validation.rs:7:14
5 | ------- ^ inherent impl for this type
7 | `default` because of this
9 = note: only trait implementations may be annotated with `default`
11 warning: the feature `specialization` is incomplete and may be unsafe to use and/or cause compiler crashes
12 --> $DIR/validation.rs:2:12
14 LL | #![feature(specialization)]
17 = note: `#[warn(incomplete_features)]` on by default
18 = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
20 error: impls of auto traits cannot be default
21 --> $DIR/validation.rs:9:21
23 LL | default unsafe impl Send for S {}
24 | ------- ^^^^ auto trait
26 | default because of this
28 error: impls of auto traits cannot be default
29 --> $DIR/validation.rs:10:15
31 LL | default impl !Send for Z {}
32 | ------- ^^^^ auto trait
34 | default because of this
36 error[E0750]: negative impls cannot be default impls
37 --> $DIR/validation.rs:10:1
39 LL | default impl !Send for Z {}
42 error[E0750]: negative impls cannot be default impls
43 --> $DIR/validation.rs:14:1
45 LL | default impl !Tr for S {}
48 error: aborting due to 5 previous errors; 1 warning emitted
50 For more information about this error, try `rustc --explain E0750`.