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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
787 B
Text
Raw Normal View History

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
|
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
|
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
error: aborting due to 2 previous errors
2018-08-08 14:28:26 +02:00
For more information about this error, try `rustc --explain E0261`.