summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-76437-pub-crate-unsafe.stderr
blob: fa8f13721c89401c4784fe644d113102aa72d76d (plain)
1
2
3
4
5
6
7
8
9
10
11
error: expected one of `extern` or `fn`, found keyword `pub`
  --> $DIR/issue-76437-pub-crate-unsafe.rs:4:12
   |
LL |     unsafe pub(crate) fn t() {}
   |     -------^^^-------
   |     |      |
   |     |      expected one of `extern` or `fn`
   |     help: visibility `pub(crate)` must come before `unsafe`: `pub(crate) unsafe`

error: aborting due to previous error