]> git.proxmox.com Git - rustc.git/blob - src/test/ui/specialization/defaultimpl/validation.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / specialization / defaultimpl / validation.stderr
1 error: inherent impls cannot be `default`
2 --> $DIR/validation.rs:7:14
3 |
4 LL | default impl S {}
5 | ------- ^ inherent impl for this type
6 | |
7 | `default` because of this
8 |
9 = note: only trait implementations may be annotated with `default`
10
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: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
18 = help: consider using `min_specialization` instead, which is more stable and complete
19 = note: `#[warn(incomplete_features)]` on by default
20
21 error: impls of auto traits cannot be default
22 --> $DIR/validation.rs:9:21
23 |
24 LL | default unsafe impl Send for S {}
25 | ------- ^^^^ auto trait
26 | |
27 | default because of this
28
29 error: impls of auto traits cannot be default
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
38 --> $DIR/validation.rs:10:1
39 |
40 LL | default impl !Send for Z {}
41 | ^^^^^^^ ^
42
43 error[E0750]: negative impls cannot be default impls
44 --> $DIR/validation.rs:14:1
45 |
46 LL | default impl !Tr for S {}
47 | ^^^^^^^ ^
48
49 error: aborting due to 5 previous errors; 1 warning emitted
50
51 For more information about this error, try `rustc --explain E0750`.