]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2018/remove-extern-crate.fixed
Ignore new test on Windows
[rust.git] / src / test / ui / rust-2018 / remove-extern-crate.fixed
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.
4 //
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.
10
11 // run-rustfix
12 // edition:2018
13 // compile-pass
14 // aux-build:remove-extern-crate.rs
15
16 #![warn(rust_2018_idioms)]
17
18
19 use core as another_name;
20 use remove_extern_crate;
21 #[macro_use]
22 extern crate remove_extern_crate as something_else;
23
24 fn main() {
25     another_name::mem::drop(3);
26     another::foo();
27     remove_extern_crate::foo!();
28     bar!();
29 }
30
31 mod another {
32     use core;
33     use remove_extern_crate;
34
35     pub fn foo() {
36         core::mem::drop(4);
37         remove_extern_crate::foo!();
38     }
39 }