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

16 lines
515 B
Plaintext
Raw Normal View History

error[E0637]: `'_` cannot be used here
2018-10-19 20:39:41 +00:00
--> $DIR/where-clauses.rs:3:10
|
2018-10-19 20:39:41 +00:00
LL | impl<'b: '_> Foo<'b> for i32 {} //~ ERROR `'_` cannot be used here
| ^^ `'_` is a reserved lifetime name
2018-10-19 20:39:41 +00:00
error[E0637]: `'_` cannot be used here
--> $DIR/where-clauses.rs:5:9
|
LL | impl<T: '_> Foo<'static> for Vec<T> {} //~ ERROR `'_` cannot be used here
| ^^ `'_` is a reserved lifetime name
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0637`.