about summary refs log tree commit diff
path: root/tests/ui/parser/lifetime-semicolon.rs
blob: 158c5ccdcdf198f041db47a2c5e38a48a168cfb4 (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() {}