summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/lifetime-semicolon.rs
blob: 21c8b0a7f88b3d49e12a1112bb9a644121798152 (plain)
1
2
3
4
5
6
7
8
9
10
// 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() {}