rust/tests/ui/bounds-lifetime.stderr

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

42 lines
1.4 KiB
Plaintext
Raw Normal View History

error: 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: 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: 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
| ^^
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
| ^
|
= 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
2024-01-10 06:39:02 +00:00
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2018-08-08 12:28:26 +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
|
LL | type E = dyn for<T, U> 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
2024-01-10 06:39:02 +00:00
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2018-08-08 12:28:26 +00:00
error: aborting due to 5 previous errors
For more information about this error, try `rustc --explain E0658`.