rust/tests/ui/parser/issues/issue-67146-negative-outlives-bound-syntactic-fail.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-04-25 00:15:50 -05:00
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
2023-04-25 00:15:50 -05:00
--> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:9:14
|
LL | pub fn f1<T: !'static>() {}
2023-04-25 00:15:50 -05:00
| ^
error: negative bounds are not supported
2023-04-25 00:15:50 -05:00
--> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:12:24
|
LL | pub fn f2<'a, T: Ord + !'a>() {}
2023-04-25 00:15:50 -05:00
| ^
error: negative bounds are not supported
2023-04-25 00:15:50 -05:00
--> $DIR/issue-67146-negative-outlives-bound-syntactic-fail.rs:15:18
|
LL | pub fn f3<'a, T: !'a + Ord>() {}
2023-04-25 00:15:50 -05:00
| ^
2023-04-25 00:15:50 -05:00
error: aborting due to 6 previous errors