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