rust/src/test/ui/parser/lifetime-semicolon.rs
2022-06-12 17:48:52 +02:00

11 lines
179 B
Rust

// run-rustfix
#![allow(unused)]
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() {}