1 // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 #![deny(unnecessary_extern_crate)]
12 #![feature(alloc, test, libc)]
15 //~^ ERROR `extern crate` is unnecessary in the new edition
17 extern crate alloc as x;
18 //~^ ERROR `extern crate` is unnecessary in the new edition
23 pub extern crate test as y;
24 //~^ ERROR `extern crate` is unnecessary in the new edition
25 //~| HELP use `pub use`
26 pub extern crate libc;
27 //~^ ERROR `extern crate` is unnecessary in the new edition
28 //~| HELP use `pub use`
33 //~^ ERROR `extern crate` is unnecessary in the new edition
35 extern crate alloc as x;
36 //~^ ERROR `extern crate` is unnecessary in the new edition
38 pub extern crate test;
39 //~^ ERROR `extern crate` is unnecessary in the new edition
40 //~| HELP use `pub use`
41 pub extern crate test as y;
42 //~^ ERROR `extern crate` is unnecessary in the new edition
43 //~| HELP use `pub use`
46 //~^ ERROR `extern crate` is unnecessary in the new edition
48 extern crate alloc as x;
49 //~^ ERROR `extern crate` is unnecessary in the new edition