summaryrefslogtreecommitdiffstats
path: root/tests/ui/underscore-lifetime/underscore-outlives-bounds.rs
blob: 567cc7a3f5fa3b9fa7e897118a5fa23334bbcfc5 (plain)
1
2
3
4
5
6
7
8
// 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() { }