rust/src/test/ui/underscore-lifetime/underscore-outlives-bounds.rs

9 lines
169 B
Rust
Raw Normal View History

// Regression test to check that `'b: '_` gets an error, because it's
// basically useless.
//
// #54902
trait Foo<'a> {}
impl<'b: '_> Foo<'b> for i32 {}
fn main() { }