fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

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