]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-76437-pub-crate-unsafe.stderr
Rollup merge of #88794 - sunfishcode:sunfishcode/try-clone, r=joshtriplett
[rust.git] / src / test / ui / parser / issues / issue-76437-pub-crate-unsafe.stderr
1 error: expected one of `extern` or `fn`, found keyword `pub`
2   --> $DIR/issue-76437-pub-crate-unsafe.rs:4:12
3    |
4 LL |     unsafe pub(crate) fn t() {}
5    |     -------^^^-------
6    |     |      |
7    |     |      expected one of `extern` or `fn`
8    |     help: visibility `pub(crate)` must come before `unsafe`: `pub(crate) unsafe`
9
10 error: aborting due to previous error
11