diff options
Diffstat (limited to 'tests/ui/parser/issue-87694-duplicated-pub.rs')
-rw-r--r-- | tests/ui/parser/issue-87694-duplicated-pub.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/parser/issue-87694-duplicated-pub.rs b/tests/ui/parser/issue-87694-duplicated-pub.rs new file mode 100644 index 000000000..e3ea61dc4 --- /dev/null +++ b/tests/ui/parser/issue-87694-duplicated-pub.rs @@ -0,0 +1,5 @@ +pub const pub fn test() {} +//~^ ERROR expected one of `async`, `extern`, `fn`, or `unsafe`, found keyword `pub` +//~| NOTE expected one of `async`, `extern`, `fn`, or `unsafe` +//~| HELP there is already a visibility modifier, remove one +//~| NOTE explicit visibility first seen here |