]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-33418.stderr
Tweak unsupported negative trait bounds message
[rust.git] / src / test / ui / parser / issue-33418.stderr
1 error: negative trait bounds are not supported
2   --> $DIR/issue-33418.rs:3:9
3    |
4 LL | trait Tr: !SuperA {}
5    |         ^^^^^^^^^ negative trait bounds are not supported
6    = help: remove the trait bound
7
8 error: negative trait bounds are not supported
9   --> $DIR/issue-33418.rs:5:19
10    |
11 LL | trait Tr2: SuperA + !SuperB {}
12    |                   ^^^^^^^^^ negative trait bounds are not supported
13    = help: remove the trait bound
14
15 error: negative trait bounds are not supported
16   --> $DIR/issue-33418.rs:7:10
17    |
18 LL | trait Tr3: !SuperA + SuperB {}
19    |          ^^^^^^^^^ negative trait bounds are not supported
20    = help: remove the trait bound
21
22 error: negative trait bounds are not supported
23   --> $DIR/issue-33418.rs:9:10
24    |
25 LL | trait Tr4: !SuperA + SuperB
26    |          ^^^^^^^^^
27 LL |     + !SuperC + SuperD {}
28    |     ^^^^^^^^^ negative trait bounds are not supported
29    = help: remove the trait bounds
30
31 error: negative trait bounds are not supported
32   --> $DIR/issue-33418.rs:12:10
33    |
34 LL | trait Tr5: !SuperA
35    |          ^^^^^^^^^
36 LL |     + !SuperB {}
37    |     ^^^^^^^^^ negative trait bounds are not supported
38    = help: remove the trait bounds
39
40 error: aborting due to 5 previous errors
41