2017-11-14 19:49:29 -06:00
|
|
|
error: missing `fn` for method definition
|
|
|
|
--> $DIR/pub-ident-fn.rs:11:4
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub foo(s: usize) -> bool { true }
|
2017-11-14 19:49:29 -06:00
|
|
|
| ^^^
|
|
|
|
help: add `fn` here to parse `foo` as a public method
|
|
|
|
|
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | pub fn foo(s: usize) -> bool { true }
|
2017-11-14 19:49:29 -06:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|