rust/src/test/ui/where-clauses/where-lifetime-resolution.stderr

28 lines
992 B
Plaintext
Raw Normal View History

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
|
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
|
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
For more information about this error, try `rustc --explain E0261`.