summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/suggest-removing-semicolon-after-impl-trait-items.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/suggest-removing-semicolon-after-impl-trait-items.rs')
-rw-r--r--tests/ui/parser/suggest-removing-semicolon-after-impl-trait-items.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/parser/suggest-removing-semicolon-after-impl-trait-items.rs b/tests/ui/parser/suggest-removing-semicolon-after-impl-trait-items.rs
new file mode 100644
index 000000000..4650b05e2
--- /dev/null
+++ b/tests/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() {}