diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/pub/pub-ident-fn.stderr | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/pub/pub-ident-fn.stderr b/src/test/ui/pub/pub-ident-fn.stderr new file mode 100644 index 000000000..cb94c48ad --- /dev/null +++ b/src/test/ui/pub/pub-ident-fn.stderr @@ -0,0 +1,13 @@ +error: missing `fn` for function definition + --> $DIR/pub-ident-fn.rs:3:4 + | +LL | pub foo(_s: usize) -> bool { true } + | ^^^ + | +help: add `fn` here to parse `foo` as a public function + | +LL | pub fn foo(_s: usize) -> bool { true } + | ++ + +error: aborting due to previous error + |