]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pub/pub-ident-fn-2.stderr
Auto merge of #106025 - matthiaskrgr:rollup-vz5rqah, r=matthiaskrgr
[rust.git] / src / test / ui / pub / pub-ident-fn-2.stderr
1 error: missing `fn` for function definition
2   --> $DIR/pub-ident-fn-2.rs:3:4
3    |
4 LL | pub foo(_s: usize) { bar() }
5    |    ^
6    |
7 help: add `fn` here to parse `foo` as a public function
8    |
9 LL | pub fn foo(_s: usize) { bar() }
10    |     ++
11
12 error: aborting due to previous error
13