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