rust/tests/ui/bounds-lifetime.stderr

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

40 lines
1.3 KiB
Plaintext
Raw Normal View History

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
|
2019-03-09 06:03:44 -06:00
LL | type A = for<'b, 'a: 'b> fn();
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:2:22
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | type B = for<'b, 'a: 'b,> fn();
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:3:22
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | type C = for<'b, 'a: 'b +> fn();
2018-08-08 07:28:26 -05:00
| ^^
error[E0658]: 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
|
2019-03-09 06:03:44 -06:00
LL | type D = for<'a, T> fn();
2018-08-08 07:28:26 -05:00
| ^
|
= note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
= help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable
2018-08-08 07:28:26 -05:00
error[E0658]: only lifetime parameters can be used in this context
2019-05-28 13:46:13 -05:00
--> $DIR/bounds-lifetime.rs:5:18
2018-08-08 07:28:26 -05:00
|
2019-05-28 13:46:13 -05:00
LL | type E = dyn for<T> Fn();
| ^
|
= note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
= help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable
2018-08-08 07:28:26 -05:00
error: aborting due to 5 previous errors
For more information about this error, try `rustc --explain E0658`.