]>
Commit | Line | Data |
---|---|---|
74b04a01 | 1 | error: inherent impls cannot be `default` |
ba9703b0 | 2 | --> $DIR/validation.rs:7:14 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | default impl S {} |
ba9703b0 | 5 | | ------- ^ inherent impl for this type |
74b04a01 XL |
6 | | | |
7 | | `default` because of this | |
b7449926 | 8 | | |
74b04a01 | 9 | = note: only trait implementations may be annotated with `default` |
b7449926 | 10 | |
f035d41b XL |
11 | warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes |
12 | --> $DIR/validation.rs:2:12 | |
13 | | | |
14 | LL | #![feature(specialization)] | |
15 | | ^^^^^^^^^^^^^^ | |
16 | | | |
17 | = note: `#[warn(incomplete_features)]` on by default | |
18 | = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information | |
29967ef6 | 19 | = help: consider using `min_specialization` instead, which is more stable and complete |
f035d41b | 20 | |
b7449926 | 21 | error: impls of auto traits cannot be default |
ba9703b0 | 22 | --> $DIR/validation.rs:9:21 |
b7449926 | 23 | | |
532ac7d7 | 24 | LL | default unsafe impl Send for S {} |
ba9703b0 XL |
25 | | ------- ^^^^ auto trait |
26 | | | | |
27 | | default because of this | |
b7449926 XL |
28 | |
29 | error: impls of auto traits cannot be default | |
ba9703b0 XL |
30 | --> $DIR/validation.rs:10:15 |
31 | | | |
32 | LL | default impl !Send for Z {} | |
33 | | ------- ^^^^ auto trait | |
34 | | | | |
35 | | default because of this | |
36 | ||
37 | error[E0750]: negative impls cannot be default impls | |
f9f354fc | 38 | --> $DIR/validation.rs:10:1 |
b7449926 | 39 | | |
532ac7d7 | 40 | LL | default impl !Send for Z {} |
ba9703b0 | 41 | | ^^^^^^^ ^ |
b7449926 | 42 | |
ba9703b0 | 43 | error[E0750]: negative impls cannot be default impls |
f9f354fc | 44 | --> $DIR/validation.rs:14:1 |
b7449926 | 45 | | |
532ac7d7 | 46 | LL | default impl !Tr for S {} |
ba9703b0 | 47 | | ^^^^^^^ ^ |
b7449926 | 48 | |
f035d41b | 49 | error: aborting due to 5 previous errors; 1 warning emitted |
b7449926 | 50 | |
ba9703b0 | 51 | For more information about this error, try `rustc --explain E0750`. |