]> git.proxmox.com Git - rustc.git/blame - tests/ui/bounds-lifetime.stderr
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / ui / bounds-lifetime.stderr
CommitLineData
b7449926 1error: lifetime bounds cannot be used in this context
0731742a 2 --> $DIR/bounds-lifetime.rs:1:22
b7449926 3 |
532ac7d7 4LL | type A = for<'b, 'a: 'b> fn();
b7449926
XL
5 | ^^
6
7error: lifetime bounds cannot be used in this context
0731742a 8 --> $DIR/bounds-lifetime.rs:2:22
b7449926 9 |
532ac7d7 10LL | type B = for<'b, 'a: 'b,> fn();
b7449926
XL
11 | ^^
12
13error: lifetime bounds cannot be used in this context
0731742a 14 --> $DIR/bounds-lifetime.rs:3:22
b7449926 15 |
532ac7d7 16LL | type C = for<'b, 'a: 'b +> fn();
b7449926
XL
17 | ^^
18
9ffffee4 19error[E0658]: only lifetime parameters can be used in this context
0731742a 20 --> $DIR/bounds-lifetime.rs:4:18
b7449926 21 |
532ac7d7 22LL | type D = for<'a, T> fn();
b7449926 23 | ^
9ffffee4
FG
24 |
25 = note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
26 = help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable
b7449926 27
9ffffee4 28error[E0658]: only lifetime parameters can be used in this context
dc9dc135 29 --> $DIR/bounds-lifetime.rs:5:18
b7449926 30 |
dc9dc135
XL
31LL | type E = dyn for<T> Fn();
32 | ^
9ffffee4
FG
33 |
34 = note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
35 = help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable
b7449926
XL
36
37error: aborting due to 5 previous errors
38
9ffffee4 39For more information about this error, try `rustc --explain E0658`.