diff options
Diffstat (limited to 'tests/ui/pub/pub-restricted-error-fn.rs')
-rw-r--r-- | tests/ui/pub/pub-restricted-error-fn.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/pub/pub-restricted-error-fn.rs b/tests/ui/pub/pub-restricted-error-fn.rs new file mode 100644 index 000000000..fc1aeae2b --- /dev/null +++ b/tests/ui/pub/pub-restricted-error-fn.rs @@ -0,0 +1,2 @@ +pub(crate) () fn foo() {} //~ ERROR visibility `pub(crate)` is not followed by an item +//~^ ERROR expected item, found `(` |