about summary refs log tree commit diff
path: root/tests/ui/parser/issues/issue-76437-pub-crate-unsafe.rs
blob: 6e3039c2228963a764389c5900d15592371fa02b (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`
}