rust/tests/ui/pub/pub-ident-fn-2.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
281 B
Plaintext
Raw Normal View History

error: missing `fn` for function definition
2020-07-02 05:32:12 +00:00
--> $DIR/pub-ident-fn-2.rs:3:4
|
2020-07-02 05:32:12 +00:00
LL | pub foo(_s: usize) { bar() }
| ^
|
help: add `fn` here to parse `foo` as a public function
|
2020-07-02 05:32:12 +00:00
LL | pub fn foo(_s: usize) { bar() }
| ++
error: aborting due to previous error