rust/src/test/ui/bounds-lifetime.stderr
2018-12-25 21:08:33 -07:00

33 lines
1.1 KiB
Plaintext

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