rust/src/test/ui/parser/lifetime-semicolon.rs

9 lines
145 B
Rust

struct Foo<'a, 'b> {
a: &'a &'b i32
}
fn foo<'a, 'b>(x: &mut Foo<'a; 'b>) {}
//~^ ERROR expected one of `,` or `>`, found `;`
fn main() {}