]> git.lizzy.rs Git - rust.git/blob - src/test/ui/syntax-trait-polarity.stderr
Remove licenses
[rust.git] / src / test / ui / syntax-trait-polarity.stderr
1 error: inherent impls cannot be negative
2   --> $DIR/syntax-trait-polarity.rs:7:1
3    |
4 LL | impl !TestType {}
5    | ^^^^^^^^^^^^^^^^^
6
7 error[E0198]: negative impls cannot be unsafe
8   --> $DIR/syntax-trait-polarity.rs:12:1
9    |
10 LL | unsafe impl !Send for TestType {}
11    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: inherent impls cannot be negative
14   --> $DIR/syntax-trait-polarity.rs:19:1
15    |
16 LL | impl<T> !TestType2<T> {}
17    | ^^^^^^^^^^^^^^^^^^^^^^^^
18
19 error[E0198]: negative impls cannot be unsafe
20   --> $DIR/syntax-trait-polarity.rs:22:1
21    |
22 LL | unsafe impl<T> !Send for TestType2<T> {}
23    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
25 error[E0192]: negative impls are only allowed for auto traits (e.g., `Send` and `Sync`)
26   --> $DIR/syntax-trait-polarity.rs:14:1
27    |
28 LL | impl !TestTrait for TestType {}
29    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
31 error[E0192]: negative impls are only allowed for auto traits (e.g., `Send` and `Sync`)
32   --> $DIR/syntax-trait-polarity.rs:24:1
33    |
34 LL | impl<T> !TestTrait for TestType2<T> {}
35    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36
37 error: aborting due to 6 previous errors
38
39 Some errors occurred: E0192, E0198.
40 For more information about an error, try `rustc --explain E0192`.