summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-76437-unsafe.stderr
blob: c63292ef853958796d035164dcef057cb87955e5 (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-unsafe.rs:4:12
   |
LL |     unsafe pub fn t() {}
   |     -------^^^
   |     |      |
   |     |      expected one of `extern` or `fn`
   |     help: visibility `pub` must come before `unsafe`: `pub unsafe`

error: aborting due to previous error