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

9 lines
164 B
Rust
Raw Normal View History

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