summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pub/pub-ident-fn-or-struct.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/pub/pub-ident-fn-or-struct.stderr')
-rw-r--r--src/test/ui/pub/pub-ident-fn-or-struct.stderr8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/pub/pub-ident-fn-or-struct.stderr b/src/test/ui/pub/pub-ident-fn-or-struct.stderr
new file mode 100644
index 000000000..c4a196eb2
--- /dev/null
+++ b/src/test/ui/pub/pub-ident-fn-or-struct.stderr
@@ -0,0 +1,8 @@
+error: missing `fn` or `struct` for function or struct definition
+ --> $DIR/pub-ident-fn-or-struct.rs:1:4
+ |
+LL | pub S (foo) bar
+ | ---^- help: if you meant to call a macro, try: `S!`
+
+error: aborting due to previous error
+