rust/src/test/ui/bounds-lifetime.stderr

33 lines
1.1 KiB
Plaintext

error: lifetime bounds cannot be used in this context
--> $DIR/bounds-lifetime.rs:11:22
|
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
--> $DIR/bounds-lifetime.rs:12:22
|
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
--> $DIR/bounds-lifetime.rs:13:22
|
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
--> $DIR/bounds-lifetime.rs:14:18
|
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
--> $DIR/bounds-lifetime.rs:15:14
|
LL | type E = for<T> Fn(); //~ ERROR only lifetime parameters can be used in this context
| ^
error: aborting due to 5 previous errors