rust/tests/ui/bounds-lifetime.stderr

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

33 lines
837 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error: lifetime bounds cannot be used in this context
2018-12-25 15:56:47 +00:00
--> $DIR/bounds-lifetime.rs:1:22
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | type A = for<'b, 'a: 'b> fn();
2018-08-08 12:28:26 +00:00
| ^^
error: lifetime bounds cannot be used in this context
2018-12-25 15:56:47 +00:00
--> $DIR/bounds-lifetime.rs:2:22
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | type B = for<'b, 'a: 'b,> fn();
2018-08-08 12:28:26 +00:00
| ^^
error: lifetime bounds cannot be used in this context
2018-12-25 15:56:47 +00:00
--> $DIR/bounds-lifetime.rs:3:22
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | type C = for<'b, 'a: 'b +> fn();
2018-08-08 12:28:26 +00:00
| ^^
error: only lifetime parameters can be used in this context
2018-12-25 15:56:47 +00:00
--> $DIR/bounds-lifetime.rs:4:18
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | type D = for<'a, T> fn();
2018-08-08 12:28:26 +00:00
| ^
error: only lifetime parameters can be used in this context
2019-05-28 18:46:13 +00:00
--> $DIR/bounds-lifetime.rs:5:18
2018-08-08 12:28:26 +00:00
|
2019-05-28 18:46:13 +00:00
LL | type E = dyn for<T> Fn();
| ^
2018-08-08 12:28:26 +00:00
error: aborting due to 5 previous errors