fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.2 KiB41 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   = help: remove the trait bound
7
8error: negative trait bounds are not supported
9  --> $DIR/issue-33418.rs:5:19
10   |
11LL | trait Tr2: SuperA + !SuperB {}
12   |                   ^^^^^^^^^ negative trait bounds are not supported
13   = help: remove the trait bound
14
15error: negative trait bounds are not supported
16  --> $DIR/issue-33418.rs:7:10
17   |
18LL | trait Tr3: !SuperA + SuperB {}
19   |          ^^^^^^^^^ negative trait bounds are not supported
20   = help: remove the trait bound
21
22error: negative trait bounds are not supported
23  --> $DIR/issue-33418.rs:9:10
24   |
25LL | trait Tr4: !SuperA + SuperB
26   |          ^^^^^^^^^
27LL |     + !SuperC + SuperD {}
28   |     ^^^^^^^^^ negative trait bounds are not supported
29   = help: remove the trait bounds
30
31error: negative trait bounds are not supported
32  --> $DIR/issue-33418.rs:12:10
33   |
34LL | trait Tr5: !SuperA
35   |          ^^^^^^^^^
36LL |     + !SuperB {}
37   |     ^^^^^^^^^ negative trait bounds are not supported
38   = help: remove the trait bounds
39
40error: aborting due to 5 previous errors
41