]> git.proxmox.com Git - rustc.git/blob - src/test/ui/bounds-lifetime.stderr
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / bounds-lifetime.stderr
1 error: lifetime bounds cannot be used in this context
2 --> $DIR/bounds-lifetime.rs:1:22
3 |
4 LL | type A = for<'b, 'a: 'b> fn();
5 | ^^
6
7 error: lifetime bounds cannot be used in this context
8 --> $DIR/bounds-lifetime.rs:2:22
9 |
10 LL | type B = for<'b, 'a: 'b,> fn();
11 | ^^
12
13 error: lifetime bounds cannot be used in this context
14 --> $DIR/bounds-lifetime.rs:3:22
15 |
16 LL | type C = for<'b, 'a: 'b +> fn();
17 | ^^
18
19 error: only lifetime parameters can be used in this context
20 --> $DIR/bounds-lifetime.rs:4:18
21 |
22 LL | type D = for<'a, T> fn();
23 | ^
24
25 error: only lifetime parameters can be used in this context
26 --> $DIR/bounds-lifetime.rs:5:18
27 |
28 LL | type E = dyn for<T> Fn();
29 | ^
30
31 error: aborting due to 5 previous errors
32