]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error: lifetime bounds cannot be used in this context |
0731742a | 2 | --> $DIR/bounds-lifetime.rs:1:22 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | type A = for<'b, 'a: 'b> fn(); |
b7449926 XL |
5 | | ^^ |
6 | ||
7 | error: lifetime bounds cannot be used in this context | |
0731742a | 8 | --> $DIR/bounds-lifetime.rs:2:22 |
b7449926 | 9 | | |
532ac7d7 | 10 | LL | type B = for<'b, 'a: 'b,> fn(); |
b7449926 XL |
11 | | ^^ |
12 | ||
13 | error: lifetime bounds cannot be used in this context | |
0731742a | 14 | --> $DIR/bounds-lifetime.rs:3:22 |
b7449926 | 15 | | |
532ac7d7 | 16 | LL | type C = for<'b, 'a: 'b +> fn(); |
b7449926 XL |
17 | | ^^ |
18 | ||
9ffffee4 | 19 | error[E0658]: only lifetime parameters can be used in this context |
0731742a | 20 | --> $DIR/bounds-lifetime.rs:4:18 |
b7449926 | 21 | | |
532ac7d7 | 22 | LL | 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 | 28 | error[E0658]: only lifetime parameters can be used in this context |
dc9dc135 | 29 | --> $DIR/bounds-lifetime.rs:5:18 |
b7449926 | 30 | | |
dc9dc135 XL |
31 | LL | 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 | |
37 | error: aborting due to 5 previous errors | |
38 | ||
9ffffee4 | 39 | For more information about this error, try `rustc --explain E0658`. |