summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-41155.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/issues/issue-41155.rs')
-rw-r--r--tests/ui/parser/issues/issue-41155.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/parser/issues/issue-41155.rs b/tests/ui/parser/issues/issue-41155.rs
new file mode 100644
index 000000000..5a7488e6f
--- /dev/null
+++ b/tests/ui/parser/issues/issue-41155.rs
@@ -0,0 +1,7 @@
+struct S;
+
+impl S {
+ pub //~ ERROR visibility `pub` is not followed by an item
+} //~ ERROR non-item in item list
+
+fn main() {}