1 // Copyright 2018 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.
14 // aux-build:remove-extern-crate.rs
15 // compile-flags:--extern remove_extern_crate
17 #![warn(rust_2018_idioms)]
20 use core as another_name;
21 use remove_extern_crate;
23 extern crate remove_extern_crate as something_else;
26 another_name::mem::drop(3);
28 remove_extern_crate::foo!();
34 use remove_extern_crate;
38 remove_extern_crate::foo!();