rust/tests/ui/regions/regions-name-duplicated.rs

7 lines
124 B
Rust

struct Foo<'a, 'a> {
//~^ ERROR the name `'a` is already used for a generic parameter
x: &'a isize,
}
fn main() {}