]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/extern-no-fn.stderr
Add 'compiler/rustc_codegen_cranelift/' from commit '793d26047f994e23415f8f6bb5686ff2...
[rust.git] / src / test / ui / parser / extern-no-fn.stderr
index 8d55eefc8d0ecab06db34026229a733a6d86692a..0151cb4235b0da8740ac190eb7b983d4df6e7241 100644 (file)
@@ -1,11 +1,12 @@
-error: missing `fn`, `type`, `const`, or `static` for item declaration
-  --> $DIR/extern-no-fn.rs:1:9
+error: expected one of `!` or `::`, found `(`
+  --> $DIR/extern-no-fn.rs:2:6
    |
-LL |   extern {
-   |  _________^
-LL | |
-LL | |     f();
-   | |____^ missing `fn`, `type`, `const`, or `static`
+LL | extern {
+   |        - 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