]> git.lizzy.rs Git - rust.git/blob - src/test/ui/removing-extern-crate.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / removing-extern-crate.rs
1 // edition:2018
2 // aux-build:removing-extern-crate.rs
3 // run-rustfix
4 // compile-pass
5
6 #![warn(rust_2018_idioms)]
7 #![allow(unused_imports)]
8
9 extern crate removing_extern_crate as foo;
10 extern crate core;
11
12 mod another {
13     extern crate removing_extern_crate as foo;
14     extern crate core;
15 }
16
17 fn main() {}