]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/pub-ident-fn.stderr
f7c96b8b9f4bb951c8b9e087d193245d226a4398
[rust.git] / src / test / ui / suggestions / pub-ident-fn.stderr
1 error: missing `fn` for method definition
2   --> $DIR/pub-ident-fn.rs:13:4
3    |
4 LL | pub   foo(_s: usize) -> bool { true }
5    |    ^^^
6 help: add `fn` here to parse `foo` as a public method
7    |
8 LL | pub fn foo(_s: usize) -> bool { true }
9    |     ^^
10
11 error: aborting due to previous error
12