about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-03-18 00:11:52 +0000
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-03-27 22:27:23 +0000
commit62f44957bf74f9127be7cd18c494fd98d9ef6d85 (patch)
treee1fd91cce96149163a2d586ae15281df184cb450
parent85a12095708850031cf9962e2bbd8cb9f4920d9f (diff)
downloadrust-62f44957bf74f9127be7cd18c494fd98d9ef6d85.tar.gz
rust-62f44957bf74f9127be7cd18c494fd98d9ef6d85.zip
Add test for #32119
-rw-r--r--src/test/compile-fail/issue-32119.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/compile-fail/issue-32119.rs b/src/test/compile-fail/issue-32119.rs
new file mode 100644
index 00000000000..226a3a24c9b
--- /dev/null
+++ b/src/test/compile-fail/issue-32119.rs
@@ -0,0 +1,21 @@
+// 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)]
+
+pub type T = ();
+mod foo { pub use super::T; }
+mod bar { pub use super::T; }
+
+pub use foo::*;
+pub use bar::*;
+
+#[rustc_error]
+fn main() {} //~ ERROR compilation successful