diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-03-18 00:11:52 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-03-27 22:27:23 +0000 |
| commit | 62f44957bf74f9127be7cd18c494fd98d9ef6d85 (patch) | |
| tree | e1fd91cce96149163a2d586ae15281df184cb450 | |
| parent | 85a12095708850031cf9962e2bbd8cb9f4920d9f (diff) | |
| download | rust-62f44957bf74f9127be7cd18c494fd98d9ef6d85.tar.gz rust-62f44957bf74f9127be7cd18c494fd98d9ef6d85.zip | |
Add test for #32119
| -rw-r--r-- | src/test/compile-fail/issue-32119.rs | 21 |
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 |
