rust/tests/ui/underscore-lifetime/underscore-outlives-bounds.rs

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

9 lines
204 B
Rust
Raw Normal View History

// Regression test to check that `'b: '_` gets an error, because it's
// basically useless.
//
// #54902
trait Foo<'a> {}
2018-11-27 09:56:36 +00:00
impl<'b: '_> Foo<'b> for i32 {} //~ ERROR `'_` cannot be used here
fn main() { }