fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.5 KiB51 linesraw
1error: inherent impls cannot be `default`
2  --> $DIR/validation.rs:7:14
3   |
4LL | 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
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: 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
21error: impls of auto traits cannot be default
22  --> $DIR/validation.rs:9:21
23   |
24LL | default unsafe impl Send for S {}
25   | -------             ^^^^ auto trait
26   | |
27   | default because of this
28
29error: impls of auto traits cannot be default
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
38  --> $DIR/validation.rs:10:1
39   |
40LL | default impl !Send for Z {}
41   | ^^^^^^^      ^
42
43error[E0750]: negative impls cannot be default impls
44  --> $DIR/validation.rs:14:1
45   |
46LL | default impl !Tr for S {}
47   | ^^^^^^^      ^
48
49error: aborting due to 5 previous errors; 1 warning emitted
50
51For more information about this error, try `rustc --explain E0750`.