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>() {}
|
|
|
|
| ^
|
|
|
|
|
2019-12-08 05:19:53 -06:00
|
|
|
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
|
2019-12-08 05:19:53 -06:00
|
|
|
|
|
2020-07-02 01:17:39 -05:00
|
|
|
LL | pub fn f1<T: !'static>() {}
|
2023-04-25 00:15:50 -05:00
|
|
|
| ^
|
2019-12-08 05:19:53 -06: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
|
2019-12-08 05:19:53 -06:00
|
|
|
|
|
2020-07-02 01:17:39 -05:00
|
|
|
LL | pub fn f2<'a, T: Ord + !'a>() {}
|
2023-04-25 00:15:50 -05:00
|
|
|
| ^
|
2019-12-08 05:19:53 -06: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
|
2019-12-08 05:19:53 -06:00
|
|
|
|
|
2020-07-02 01:17:39 -05:00
|
|
|
LL | pub fn f3<'a, T: !'a + Ord>() {}
|
2023-04-25 00:15:50 -05:00
|
|
|
| ^
|
2019-12-08 05:19:53 -06:00
|
|
|
|
2023-04-25 00:15:50 -05:00
|
|
|
error: aborting due to 6 previous errors
|
2019-12-08 05:19:53 -06:00
|
|
|
|