2018-08-08 14:28:26 +02:00
|
|
|
error[E0261]: use of undeclared lifetime name `'a`
|
2019-05-28 14:46:13 -04:00
|
|
|
--> $DIR/where-lifetime-resolution.rs:6:38
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2020-01-15 18:34:30 -08:00
|
|
|
LL | fn f() where
|
|
|
|
| - help: consider introducing lifetime `'a` here: `<'a>`
|
|
|
|
LL | for<'a> dyn Trait1<'a>: Trait1<'a>, // OK
|
2019-05-28 14:46:13 -04:00
|
|
|
LL | (dyn for<'a> Trait1<'a>): Trait1<'a>,
|
|
|
|
| ^^ undeclared lifetime
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'b`
|
2019-05-28 14:46:13 -04:00
|
|
|
--> $DIR/where-lifetime-resolution.rs:8:52
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2020-01-15 18:34:30 -08:00
|
|
|
LL | fn f() where
|
|
|
|
| - help: consider introducing lifetime `'b` here: `<'b>`
|
|
|
|
...
|
2019-05-28 14:46:13 -04:00
|
|
|
LL | for<'a> dyn for<'b> Trait2<'a, 'b>: Trait2<'a, 'b>,
|
|
|
|
| ^^ undeclared lifetime
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2020-05-30 17:03:32 +01:00
|
|
|
error: aborting due to 2 previous errors
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2019-04-17 13:26:38 -04:00
|
|
|
For more information about this error, try `rustc --explain E0261`.
|