summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-67146-negative-outlives-bound-syntactic-fail.stderr
blob: 91fe02db3a606626fee1587fc1107b97f1ce6082 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
error: `!` may only modify trait bounds, not lifetime bounds
  --> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:9:14
   |
LL | pub fn f1<T: !'static>() {}
   |              ^

error: `!` may only modify trait bounds, not lifetime bounds
  --> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:12:24
   |
LL | pub fn f2<'a, T: Ord + !'a>() {}
   |                        ^

error: `!` may only modify trait bounds, not lifetime bounds
  --> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:15:18
   |
LL | pub fn f3<'a, T: !'a + Ord>() {}
   |                  ^

error: negative bounds are not supported
  --> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:9:14
   |
LL | pub fn f1<T: !'static>() {}
   |              ^

error: negative bounds are not supported
  --> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:12:24
   |
LL | pub fn f2<'a, T: Ord + !'a>() {}
   |                        ^

error: negative bounds are not supported
  --> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:15:18
   |
LL | pub fn f3<'a, T: !'a + Ord>() {}
   |                  ^

error: aborting due to 6 previous errors