diff options
Diffstat (limited to 'tests/ui/parser/issues/issue-41155.rs')
-rw-r--r-- | tests/ui/parser/issues/issue-41155.rs | 7 |
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() {} |