summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/lifetime-semicolon.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/lifetime-semicolon.fixed')
-rw-r--r--tests/ui/parser/lifetime-semicolon.fixed10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/parser/lifetime-semicolon.fixed b/tests/ui/parser/lifetime-semicolon.fixed
new file mode 100644
index 000000000..482b77046
--- /dev/null
+++ b/tests/ui/parser/lifetime-semicolon.fixed
@@ -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() {}