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