rust/tests/ui/underscore-lifetime/underscore-outlives-bounds.rs
2023-01-11 09:32:08 +00:00

9 lines
204 B
Rust

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