about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorMark Simulacrum <mark.simulacrum@gmail.com>2017-06-02 09:10:43 -0600
committerGitHub <noreply@github.com>2017-06-02 09:10:43 -0600
commit85e5e20363cb4e37db4459a74ff66100834f817a (patch)
tree20d4651721f117e951189f29b32a16216def04c5 /src/test
parent1316281f2d9ee2ae0aa635741a418e32b59dcc26 (diff)
parent22c4ee365c3b921859e0a325a559b3d41f49c4bb (diff)
downloadrust-85e5e20363cb4e37db4459a74ff66100834f817a.tar.gz
rust-85e5e20363cb4e37db4459a74ff66100834f817a.zip
Rollup merge of #42319 - Manishearth:const-extern, r=nikomatsakis
Improve error message for const extern fn

It's currently ``error: unmatched visibility `pub` ``, which is a nonsensical error in this context.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/parse-fail/removed-syntax-extern-const.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/parse-fail/removed-syntax-extern-const.rs b/src/test/parse-fail/removed-syntax-extern-const.rs
index e632af6c83b..27688867de3 100644
--- a/src/test/parse-fail/removed-syntax-extern-const.rs
+++ b/src/test/parse-fail/removed-syntax-extern-const.rs
@@ -12,5 +12,5 @@
 
 extern {
     const i: isize;
-    //~^ ERROR expected one of `fn`, `pub`, `static`, or `}`, found `const`
+    //~^ ERROR extern items cannot be `const`
 }