fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.1 KiB38 linesraw
1error: `!` may only modify trait bounds, not lifetime bounds
2  --> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:9:14
3   |
4LL | pub fn f1<T: !'static>() {}
5   |              ^
6
7error: `!` may only modify trait bounds, not lifetime bounds
8  --> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:12:24
9   |
10LL | pub fn f2<'a, T: Ord + !'a>() {}
11   |                        ^
12
13error: `!` may only modify trait bounds, not lifetime bounds
14  --> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:15:18
15   |
16LL | pub fn f3<'a, T: !'a + Ord>() {}
17   |                  ^
18
19error: negative bounds are not supported
20  --> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:9:14
21   |
22LL | pub fn f1<T: !'static>() {}
23   |              ^
24
25error: negative bounds are not supported
26  --> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:12:24
27   |
28LL | pub fn f2<'a, T: Ord + !'a>() {}
29   |                        ^
30
31error: negative bounds are not supported
32  --> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:15:18
33   |
34LL | pub fn f3<'a, T: !'a + Ord>() {}
35   |                  ^
36
37error: aborting due to 6 previous errors
38