fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
836 B31 linesraw
1error: inherent impls cannot be `default`
2  --> $DIR/validation.rs:7:1
3   |
4LL | default impl S {}
5   | -------^^^^^^^
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:1
13   |
14LL | default unsafe impl Send for S {}
15   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16
17error: impls of auto traits cannot be default
18  --> $DIR/validation.rs:10:1
19   |
20LL | default impl !Send for Z {}
21   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
22
23error[E0192]: negative impls are only allowed for auto traits (e.g., `Send` and `Sync`)
24  --> $DIR/validation.rs:13:1
25   |
26LL | default impl !Tr for S {}
27   | ^^^^^^^^^^^^^^^^^^^^^^^^^
28
29error: aborting due to 4 previous errors
30
31For more information about this error, try `rustc --explain E0192`.