about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-04-09 02:38:50 +0000
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-04-09 02:38:50 +0000
commit6dd809e79246150eb828106830a4c43eee38f994 (patch)
treeba7cfcedbd5aaa63ac822d1455d1dfe893ba34ed
parent1707de2dcaa5c5fefff3cab2865d92c2a96d2099 (diff)
downloadrust-6dd809e79246150eb828106830a4c43eee38f994.tar.gz
rust-6dd809e79246150eb828106830a4c43eee38f994.zip
Add regression test for #26930
-rw-r--r--src/test/compile-fail/issue-26930.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/compile-fail/issue-26930.rs b/src/test/compile-fail/issue-26930.rs
new file mode 100644
index 00000000000..6c98f3e8560
--- /dev/null
+++ b/src/test/compile-fail/issue-26930.rs
@@ -0,0 +1,20 @@
+// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+#![feature(rustc_attrs)]
+#![allow(unused)]
+
+extern crate core;
+use core as core_export;
+use self::x::*;
+mod x {}
+
+#[rustc_error]
+fn main() {} //~ ERROR compilation successful