fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0261]: use of undeclared lifetime name `'a` 2 --> $DIR/where-lifetime-resolution.rs:6:38 3 | 4LL | (dyn for<'a> Trait1<'a>): Trait1<'a>, 5 | ^^ undeclared lifetime 6 | 7 = note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html 8help: consider making the bound lifetime-generic with a new `'a` lifetime 9 | 10LL | (dyn for<'a> Trait1<'a>): for<'a> Trait1<'a>, 11 | +++++++ 12help: consider making the bound lifetime-generic with a new `'a` lifetime 13 | 14LL | for<'a> (dyn for<'a> Trait1<'a>): Trait1<'a>, 15 | +++++++ 16help: consider introducing lifetime `'a` here 17 | 18LL | fn f<'a>() where 19 | ++++ 20 21error[E0261]: use of undeclared lifetime name `'b` 22 --> $DIR/where-lifetime-resolution.rs:8:52 23 | 24LL | for<'a> dyn for<'b> Trait2<'a, 'b>: Trait2<'a, 'b>, 25 | ^^ undeclared lifetime 26 | 27help: consider making the bound lifetime-generic with a new `'b` lifetime 28 | 29LL | for<'a> dyn for<'b> Trait2<'a, 'b>: for<'b> Trait2<'a, 'b>, 30 | +++++++ 31help: consider making the bound lifetime-generic with a new `'b` lifetime 32 | 33LL | for<'b, 'a> dyn for<'b> Trait2<'a, 'b>: Trait2<'a, 'b>, 34 | +++ 35help: consider introducing lifetime `'b` here 36 | 37LL | fn f<'b>() where 38 | ++++ 39 40error: aborting due to 2 previous errors 41 42For more information about this error, try `rustc --explain E0261`.