mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
9 lines
204 B
Rust
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() { }
|