summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/issues/issue-76437-pub-crate-unsafe.rs
blob: daa1d120795fd99328eccb13b1cafd5fd6b164f6 (plain)
1
2
3
4
5
6
7
// edition:2018

mod t {
    unsafe pub(crate) fn t() {}
    //~^ ERROR expected one of `extern` or `fn`, found keyword `pub`
    //~| HELP visibility `pub(crate)` must come before `unsafe`
}