summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-76437-unsafe.rs
blob: 785a79a79a2e00349c6ef77b7fe368b0d506b342 (plain)
1
2
3
4
5
6
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`
}