about summary refs log tree commit diff
path: root/src/test/parse-fail
diff options
context:
space:
mode:
authorAustin Bonander <austin.bonander@gmail.com>2018-03-10 18:16:26 -0800
committerAustin Bonander <austin.bonander@gmail.com>2018-04-03 13:16:11 -0700
commit5d74990cebb82b9573ea6a9d509bb8e05fd6681e (patch)
tree6a2ebca0f580f6dcf95055054d3c16d3f3a9b9d0 /src/test/parse-fail
parent5ee891cfeabc0872624104611cc0a359f46447cc (diff)
expand macro invocations in `extern {}` blocks
Diffstat (limited to 'src/test/parse-fail')
-rw-r--r--src/test/parse-fail/duplicate-visibility.rs2
-rw-r--r--src/test/parse-fail/extern-no-fn.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/parse-fail/duplicate-visibility.rs b/src/test/parse-fail/duplicate-visibility.rs
index 5ee84cd5543..6899caa7153 100644
--- a/src/test/parse-fail/duplicate-visibility.rs
+++ b/src/test/parse-fail/duplicate-visibility.rs
@@ -10,7 +10,7 @@
 
 // compile-flags: -Z parse-only
 
-// error-pattern:unmatched visibility `pub`
+// error-pattern:expected one of `(`, `fn`, `static`, `type`, or `}` here
 extern {
     pub pub fn foo();
 }
diff --git a/src/test/parse-fail/extern-no-fn.rs b/src/test/parse-fail/extern-no-fn.rs
index ff3fefde40e..aa0dbd4d4fc 100644
--- a/src/test/parse-fail/extern-no-fn.rs
+++ b/src/test/parse-fail/extern-no-fn.rs
@@ -10,8 +10,8 @@
 
 // compile-flags: -Z parse-only
 
-extern {
-    f(); //~ ERROR expected one of `!` or `::`, found `(`
+extern { //~ ERROR missing `fn`, `type`, or `static` for extern-item declaration
+    f();
 }
 
 fn main() {