summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/extern-no-fn.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/extern-no-fn.stderr')
-rw-r--r--tests/ui/parser/extern-no-fn.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/parser/extern-no-fn.stderr b/tests/ui/parser/extern-no-fn.stderr
new file mode 100644
index 000000000..d9183d564
--- /dev/null
+++ b/tests/ui/parser/extern-no-fn.stderr
@@ -0,0 +1,12 @@
+error: expected one of `!` or `::`, found `(`
+ --> $DIR/extern-no-fn.rs:2:6
+ |
+LL | extern "C" {
+ | - while parsing this item list starting here
+LL | f();
+ | ^ expected one of `!` or `::`
+LL | }
+ | - the item list ends here
+
+error: aborting due to previous error
+