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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
190 B
Rust
Raw Normal View History

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