summary refs log tree commit diff
path: root/src/test/ui/removing-extern-crate.rs
blob: 22fdfc2b0ec9c659e6b10357ba0d5fb85cc8d410 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// edition:2018
// aux-build:removing-extern-crate.rs
// run-rustfix
// build-pass (FIXME(62277): could be check-pass?)

#![warn(rust_2018_idioms)]
#![allow(unused_imports)]

extern crate removing_extern_crate as foo;
extern crate core;

mod another {
    extern crate removing_extern_crate as foo;
    extern crate core;
}

fn main() {}