]> git.lizzy.rs Git - rust.git/blob - src/test/ui/underscore-lifetime/underscore-outlives-bounds.rs
normalize stderr
[rust.git] / src / test / ui / underscore-lifetime / underscore-outlives-bounds.rs
1 // Regression test to check that `'b: '_` gets an error, because it's
2 // basically useless.
3 //
4 // #54902
5
6 trait Foo<'a> {}
7 impl<'b: '_> Foo<'b> for i32 {} //~ ERROR `'_` cannot be used here
8 fn main() { }