]> git.proxmox.com Git - rustc.git/blame - src/test/ui/specialization/defaultimpl/validation.stderr
New upstream version 1.49.0~beta.4+dfsg1
[rustc.git] / src / test / ui / specialization / defaultimpl / validation.stderr
CommitLineData
74b04a01 1error: inherent impls cannot be `default`
ba9703b0 2 --> $DIR/validation.rs:7:14
b7449926 3 |
532ac7d7 4LL | 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
11warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
12 --> $DIR/validation.rs:2:12
13 |
14LL | #![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 21error: impls of auto traits cannot be default
ba9703b0 22 --> $DIR/validation.rs:9:21
b7449926 23 |
532ac7d7 24LL | default unsafe impl Send for S {}
ba9703b0
XL
25 | ------- ^^^^ auto trait
26 | |
27 | default because of this
b7449926
XL
28
29error: impls of auto traits cannot be default
ba9703b0
XL
30 --> $DIR/validation.rs:10:15
31 |
32LL | default impl !Send for Z {}
33 | ------- ^^^^ auto trait
34 | |
35 | default because of this
36
37error[E0750]: negative impls cannot be default impls
f9f354fc 38 --> $DIR/validation.rs:10:1
b7449926 39 |
532ac7d7 40LL | default impl !Send for Z {}
ba9703b0 41 | ^^^^^^^ ^
b7449926 42
ba9703b0 43error[E0750]: negative impls cannot be default impls
f9f354fc 44 --> $DIR/validation.rs:14:1
b7449926 45 |
532ac7d7 46LL | default impl !Tr for S {}
ba9703b0 47 | ^^^^^^^ ^
b7449926 48
f035d41b 49error: aborting due to 5 previous errors; 1 warning emitted
b7449926 50
ba9703b0 51For more information about this error, try `rustc --explain E0750`.