summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issue-113342.stderr
blob: a0c5e665ff8f70925281f743315fcdc52fe6cf73 (plain)
1
2
3
4
5
6
7
8
9
10
11
error: expected `fn`, found keyword `pub`
  --> $DIR/issue-113342.rs:7:12
   |
LL | extern "C" pub fn id(x: i32) -> i32 { x }
   | -----------^^^
   | |          |
   | |          expected `fn`
   | help: visibility `pub` must come before `extern "C"`: `pub extern "C"`

error: aborting due to previous error