fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.0 KiB41 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
11error: impls of auto traits cannot be default
12  --> $DIR/validation.rs:9:21
13   |
14LL | default unsafe impl Send for S {}
15   | -------             ^^^^ auto trait
16   | |
17   | default because of this
18
19error: impls of auto traits cannot be default
20  --> $DIR/validation.rs:10:15
21   |
22LL | default impl !Send for Z {}
23   | -------       ^^^^ auto trait
24   | |
25   | default because of this
26
27error[E0750]: negative impls cannot be default impls
28  --> $DIR/validation.rs:10:14
29   |
30LL | default impl !Send for Z {}
31   | ^^^^^^^      ^
32
33error[E0750]: negative impls cannot be default impls
34  --> $DIR/validation.rs:14:14
35   |
36LL | default impl !Tr for S {}
37   | ^^^^^^^      ^
38
39error: aborting due to 5 previous errors
40
41For more information about this error, try `rustc --explain E0750`.