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
|
|
|
| ^^
|
|
|
|
|
2023-02-04 01:59:17 +00:00
|
|
|
error[E0658]: 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
|
|
|
| ^
|
2023-02-04 01:59:17 +00:00
|
|
|
|
|
2023-02-17 20:22:12 +00:00
|
|
|
= note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
|
2023-02-04 01:59:17 +00:00
|
|
|
= help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2023-02-04 01:59:17 +00:00
|
|
|
error[E0658]: 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
|
|
|
|
|
2023-10-29 23:38:57 +00:00
|
|
|
LL | type E = dyn for<T, U> Fn();
|
|
|
|
| ^ ^
|
2023-02-04 01:59:17 +00:00
|
|
|
|
|
2023-02-17 20:22:12 +00:00
|
|
|
= note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
|
2023-02-04 01:59:17 +00:00
|
|
|
= help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|
2023-02-04 01:59:17 +00:00
|
|
|
For more information about this error, try `rustc --explain E0658`.
|