rust/tests/ui/underscore-lifetime/where-clauses.rs

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

8 lines
175 B
Rust
Raw Normal View History

trait Foo<'a> {}
2018-10-19 20:39:41 +00:00
impl<'b: '_> Foo<'b> for i32 {} //~ ERROR `'_` cannot be used here
impl<T: '_> Foo<'static> for Vec<T> {} //~ ERROR `'_` cannot be used here
fn main() { }