From 15b1f56499e6bcc4a95aa8cc5ab4a2953fb45c65 Mon Sep 17 00:00:00 2001 From: Jeffrey Seyfried Date: Tue, 1 Dec 2015 09:34:45 +0000 Subject: [PATCH] Add test for #30089 --- .../no-extern-crate-in-glob-import.rs | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/test/compile-fail/no-extern-crate-in-glob-import.rs 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 0000000000000..5d3efd85134ad --- /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 or the MIT license +// , 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` +}