diff options
| author | Austin Bonander <austin.bonander@gmail.com> | 2018-03-10 18:16:26 -0800 |
|---|---|---|
| committer | Austin Bonander <austin.bonander@gmail.com> | 2018-04-03 13:16:11 -0700 |
| commit | 5d74990cebb82b9573ea6a9d509bb8e05fd6681e (patch) | |
| tree | 6a2ebca0f580f6dcf95055054d3c16d3f3a9b9d0 /src/test/parse-fail | |
| parent | 5ee891cfeabc0872624104611cc0a359f46447cc (diff) | |
expand macro invocations in `extern {}` blocks
Diffstat (limited to 'src/test/parse-fail')
| -rw-r--r-- | src/test/parse-fail/duplicate-visibility.rs | 2 | ||||
| -rw-r--r-- | src/test/parse-fail/extern-no-fn.rs | 4 |
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() { |
