1 error[E0261]: use of undeclared lifetime name `'a`
2 --> $DIR/where-lifetime-resolution.rs:6:38
4 LL | (dyn for<'a> Trait1<'a>): Trait1<'a>,
5 | ^^ undeclared lifetime
7 = note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html
8 help: consider making the bound lifetime-generic with a new `'a` lifetime
10 LL | (dyn for<'a> Trait1<'a>): for<'a> Trait1<'a>,
12 help: consider making the bound lifetime-generic with a new `'a` lifetime
14 LL | for<'a> (dyn for<'a> Trait1<'a>): Trait1<'a>,
16 help: consider introducing lifetime `'a` here
21 error[E0261]: use of undeclared lifetime name `'b`
22 --> $DIR/where-lifetime-resolution.rs:8:52
24 LL | for<'a> dyn for<'b> Trait2<'a, 'b>: Trait2<'a, 'b>,
25 | ^^ undeclared lifetime
27 help: consider making the bound lifetime-generic with a new `'b` lifetime
29 LL | for<'a> dyn for<'b> Trait2<'a, 'b>: for<'b> Trait2<'a, 'b>,
31 help: consider making the bound lifetime-generic with a new `'b` lifetime
33 LL | for<'b, 'a> dyn for<'b> Trait2<'a, 'b>: Trait2<'a, 'b>,
35 help: consider introducing lifetime `'b` here
40 error: aborting due to 2 previous errors
42 For more information about this error, try `rustc --explain E0261`.