]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pub/pub-ident-fn-2.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / pub / pub-ident-fn-2.stderr
1 error: missing `fn` for method definition
2   --> $DIR/pub-ident-fn-2.rs:11:4
3    |
4 LL | pub foo(s: usize) { bar() }
5    |    ^
6 help: add `fn` here to parse `foo` as a public method
7    |
8 LL | pub fn foo(s: usize) { bar() }
9    |     ^^
10
11 error: aborting due to previous error
12