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

9 lines
156 B
Rust
Raw Normal View History

struct Foo<'a, 'b> {
a: &'a &'b i32
}
fn foo<'a, 'b>(x: &mut Foo<'a; 'b>) {}
2020-11-21 14:44:06 +00:00
//~^ ERROR expected one of `,`, `:`, `=`, or `>`, found `;`
fn main() {}