fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
665 B20 linesraw
1error: negative bounds are not supported
2  --> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:7:8
3   |
4LL | fn f1<T: !'static>() {}
5   |        ^^^^^^^^^^ negative bounds are not supported
6
7error: negative bounds are not supported
8  --> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:9:18
9   |
10LL | fn f2<'a, T: Ord + !'a>() {}
11   |                  ^^^^^ negative bounds are not supported
12
13error: negative bounds are not supported
14  --> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:11:12
15   |
16LL | fn f3<'a, T: !'a + Ord>() {}
17   |            ^^^^^ negative bounds are not supported
18
19error: aborting due to 3 previous errors
20