4 // aux-build:remove-extern-crate.rs
5 // compile-flags:--extern remove_extern_crate
7 #![warn(rust_2018_idioms)]
10 extern crate core as another_name;
11 use remove_extern_crate;
13 extern crate remove_extern_crate as something_else;
15 // Shouldn't suggest changing to `use`, as the `alloc`
16 // crate is not in the extern prelude - see #54381.
20 another_name::mem::drop(3);
22 remove_extern_crate::foo!();
29 use remove_extern_crate;
33 remove_extern_crate::foo!();