]> git.lizzy.rs Git - rust.git/blob - src/test/ui/bounds-lifetime.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / bounds-lifetime.stderr
1 error: lifetime bounds cannot be used in this context
2   --> $DIR/bounds-lifetime.rs:11:22
3    |
4 LL | type A = for<'b, 'a: 'b> fn(); //~ ERROR lifetime bounds cannot be used in this context
5    |                      ^^
6
7 error: lifetime bounds cannot be used in this context
8   --> $DIR/bounds-lifetime.rs:12:22
9    |
10 LL | type B = for<'b, 'a: 'b,> fn(); //~ ERROR lifetime bounds cannot be used in this context
11    |                      ^^
12
13 error: lifetime bounds cannot be used in this context
14   --> $DIR/bounds-lifetime.rs:13:22
15    |
16 LL | type C = for<'b, 'a: 'b +> fn(); //~ ERROR lifetime bounds cannot be used in this context
17    |                      ^^
18
19 error: only lifetime parameters can be used in this context
20   --> $DIR/bounds-lifetime.rs:14:18
21    |
22 LL | type D = for<'a, T> fn(); //~ ERROR only lifetime parameters can be used in this context
23    |                  ^
24
25 error: only lifetime parameters can be used in this context
26   --> $DIR/bounds-lifetime.rs:15:14
27    |
28 LL | type E = for<T> Fn(); //~ ERROR only lifetime parameters can be used in this context
29    |              ^
30
31 error: aborting due to 5 previous errors
32