diff options
Diffstat (limited to 'tests/ui/parser/lifetime-semicolon.rs')
-rw-r--r-- | tests/ui/parser/lifetime-semicolon.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/parser/lifetime-semicolon.rs b/tests/ui/parser/lifetime-semicolon.rs new file mode 100644 index 000000000..21c8b0a7f --- /dev/null +++ b/tests/ui/parser/lifetime-semicolon.rs @@ -0,0 +1,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() {} |