diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2015-12-01 09:34:45 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2015-12-01 09:34:45 +0000 |
| commit | 15b1f56499e6bcc4a95aa8cc5ab4a2953fb45c65 (patch) | |
| tree | 406996846a9448b1659284c85ca0beae9b01cc82 | |
| parent | 4da9694a558458fe2854bd7fe6a9922afb91d360 (diff) | |
| download | rust-15b1f56499e6bcc4a95aa8cc5ab4a2953fb45c65.tar.gz rust-15b1f56499e6bcc4a95aa8cc5ab4a2953fb45c65.zip | |
Add test for #30089
| -rw-r--r-- | src/test/compile-fail/no-extern-crate-in-glob-import.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test/compile-fail/no-extern-crate-in-glob-import.rs b/src/test/compile-fail/no-extern-crate-in-glob-import.rs new file mode 100644 index 00000000000..5d3efd85134 --- /dev/null +++ b/src/test/compile-fail/no-extern-crate-in-glob-import.rs @@ -0,0 +1,22 @@ +// Copyright 2014 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. + +// Check that extern crate declarations are excluded from glob imports. + +#![feature(core)] +extern crate core; + +mod T { + use super::*; +} + +fn main() { + use T::core; //~ ERROR unresolved import `T::core` +} |
