fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
992 B27 linesraw
1error[E0261]: use of undeclared lifetime name `'a`
2  --> $DIR/where-lifetime-resolution.rs:6:38
3   |
4LL | fn f() where
5   |     - help: consider introducing lifetime `'a` here: `<'a>`
6LL |     for<'a> dyn Trait1<'a>: Trait1<'a>, // OK
7LL |     (dyn for<'a> Trait1<'a>): Trait1<'a>,
8   |                                      ^^ undeclared lifetime
9
10error[E0316]: nested quantification of lifetimes
11  --> $DIR/where-lifetime-resolution.rs:8:17
12   |
13LL |     for<'a> dyn for<'b> Trait2<'a, 'b>: Trait2<'a, 'b>,
14   |                 ^^^^^^^^^^^^^^^^^^^^^^
15
16error[E0261]: use of undeclared lifetime name `'b`
17  --> $DIR/where-lifetime-resolution.rs:8:52
18   |
19LL | fn f() where
20   |     - help: consider introducing lifetime `'b` here: `<'b>`
21...
22LL |     for<'a> dyn for<'b> Trait2<'a, 'b>: Trait2<'a, 'b>,
23   |                                                    ^^ undeclared lifetime
24
25error: aborting due to 3 previous errors
26
27For more information about this error, try `rustc --explain E0261`.