rust/src/test/ui/parser/lifetime-semicolon.rs
2020-11-25 20:08:38 +01:00

9 lines
156 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() {}