mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-20 12:35:11 +00:00
8 lines
192 B
Rust
8 lines
192 B
Rust
// 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`
|
|
}
|