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