rust/tests/ui/parser/issues/issue-76437-unsafe.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
178 B
Rust
Raw Normal View History

// edition:2018
mod t {
unsafe pub fn t() {}
//~^ ERROR expected one of `extern` or `fn`, found keyword `pub`
2020-09-17 11:56:04 -05:00
//~| HELP visibility `pub` must come before `unsafe`
}