fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
837 B32 linesraw
1error: lifetime bounds cannot be used in this context
2  --> $DIR/bounds-lifetime.rs:1:22
3   |
4LL | type A = for<'b, 'a: 'b> fn();
5   |                      ^^
6
7error: lifetime bounds cannot be used in this context
8  --> $DIR/bounds-lifetime.rs:2:22
9   |
10LL | type B = for<'b, 'a: 'b,> fn();
11   |                      ^^
12
13error: lifetime bounds cannot be used in this context
14  --> $DIR/bounds-lifetime.rs:3:22
15   |
16LL | type C = for<'b, 'a: 'b +> fn();
17   |                      ^^
18
19error: only lifetime parameters can be used in this context
20  --> $DIR/bounds-lifetime.rs:4:18
21   |
22LL | type D = for<'a, T> fn();
23   |                  ^
24
25error: only lifetime parameters can be used in this context
26  --> $DIR/bounds-lifetime.rs:5:18
27   |
28LL | type E = dyn for<T> Fn();
29   |                  ^
30
31error: aborting due to 5 previous errors
32