diff options
Diffstat (limited to 'tests/ui/parser/issues/issue-76437-unsafe.rs')
-rw-r--r-- | tests/ui/parser/issues/issue-76437-unsafe.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/parser/issues/issue-76437-unsafe.rs b/tests/ui/parser/issues/issue-76437-unsafe.rs new file mode 100644 index 000000000..785a79a79 --- /dev/null +++ b/tests/ui/parser/issues/issue-76437-unsafe.rs @@ -0,0 +1,7 @@ +// edition:2018 + +mod t { + unsafe pub fn t() {} + //~^ ERROR expected one of `extern` or `fn`, found keyword `pub` + //~| HELP visibility `pub` must come before `unsafe` +} |