summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/suggest-removing-semicolon-after-impl-trait-items.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/suggest-removing-semicolon-after-impl-trait-items.rs')
-rw-r--r--src/test/ui/parser/suggest-removing-semicolon-after-impl-trait-items.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/parser/suggest-removing-semicolon-after-impl-trait-items.rs b/src/test/ui/parser/suggest-removing-semicolon-after-impl-trait-items.rs
new file mode 100644
index 000000000..4650b05e2
--- /dev/null
+++ b/src/test/ui/parser/suggest-removing-semicolon-after-impl-trait-items.rs
@@ -0,0 +1,7 @@
+// run-rustfix
+
+trait Foo {
+ fn bar() {}; //~ ERROR non-item in item list
+}
+
+fn main() {}