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 KiB37 linesraw
1error: inherent impls cannot be negative
2  --> $DIR/syntax-trait-polarity.rs:7:7
3   |
4LL | impl !TestType {}
5   |      -^^^^^^^^ inherent impl for this type
6   |      |
7   |      negative because of this
8
9error[E0198]: negative impls cannot be unsafe
10  --> $DIR/syntax-trait-polarity.rs:12:13
11   |
12LL | unsafe impl !Send for TestType {}
13   | ------      -^^^^
14   | |           |
15   | |           negative because of this
16   | unsafe because of this
17
18error: inherent impls cannot be negative
19  --> $DIR/syntax-trait-polarity.rs:18:10
20   |
21LL | impl<T> !TestType2<T> {}
22   |         -^^^^^^^^^^^^ inherent impl for this type
23   |         |
24   |         negative because of this
25
26error[E0198]: negative impls cannot be unsafe
27  --> $DIR/syntax-trait-polarity.rs:21:16
28   |
29LL | unsafe impl<T> !Send for TestType2<T> {}
30   | ------         -^^^^
31   | |              |
32   | |              negative because of this
33   | unsafe because of this
34
35error: aborting due to 4 previous errors
36
37For more information about this error, try `rustc --explain E0198`.