diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-04-09 02:38:50 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-04-09 02:38:50 +0000 |
| commit | 6dd809e79246150eb828106830a4c43eee38f994 (patch) | |
| tree | ba7cfcedbd5aaa63ac822d1455d1dfe893ba34ed | |
| parent | 1707de2dcaa5c5fefff3cab2865d92c2a96d2099 (diff) | |
| download | rust-6dd809e79246150eb828106830a4c43eee38f994.tar.gz rust-6dd809e79246150eb828106830a4c43eee38f994.zip | |
Add regression test for #26930
| -rw-r--r-- | src/test/compile-fail/issue-26930.rs | 20 |
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 |
