1 error: `extern crate` is unnecessary in the new edition
2 --> $DIR/unnecessary-extern-crate.rs:14:1
4 LL | extern crate alloc;
5 | ^^^^^^^^^^^^^^^^^^^ help: remove it
7 note: lint level defined here
8 --> $DIR/unnecessary-extern-crate.rs:11:9
10 LL | #![deny(unnecessary_extern_crate)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^
13 error: `extern crate` is unnecessary in the new edition
14 --> $DIR/unnecessary-extern-crate.rs:17:1
16 LL | extern crate alloc as x;
17 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use `use`: `use alloc as x`
19 error: `extern crate` is unnecessary in the new edition
20 --> $DIR/unnecessary-extern-crate.rs:23:1
22 LL | pub extern crate test as y;
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `pub use`: `pub use test as y`
25 error: `extern crate` is unnecessary in the new edition
26 --> $DIR/unnecessary-extern-crate.rs:26:1
28 LL | pub extern crate libc;
29 | ^^^^^^^^^^^^^^^^^^^^^^ help: use `pub use`: `pub use libc`
31 error: `extern crate` is unnecessary in the new edition
32 --> $DIR/unnecessary-extern-crate.rs:32:5
34 LL | extern crate alloc;
35 | ^^^^^^^^^^^^^^^^^^^ help: use `use`: `use alloc`
37 error: `extern crate` is unnecessary in the new edition
38 --> $DIR/unnecessary-extern-crate.rs:35:5
40 LL | extern crate alloc as x;
41 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use `use`: `use alloc as x`
43 error: `extern crate` is unnecessary in the new edition
44 --> $DIR/unnecessary-extern-crate.rs:38:5
46 LL | pub extern crate test;
47 | ^^^^^^^^^^^^^^^^^^^^^^ help: use `pub use`: `pub use test`
49 error: `extern crate` is unnecessary in the new edition
50 --> $DIR/unnecessary-extern-crate.rs:41:5
52 LL | pub extern crate test as y;
53 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `pub use`: `pub use test as y`
55 error: `extern crate` is unnecessary in the new edition
56 --> $DIR/unnecessary-extern-crate.rs:45:9
58 LL | extern crate alloc;
59 | ^^^^^^^^^^^^^^^^^^^ help: use `use`: `use alloc`
61 error: `extern crate` is unnecessary in the new edition
62 --> $DIR/unnecessary-extern-crate.rs:48:9
64 LL | extern crate alloc as x;
65 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use `use`: `use alloc as x`
67 error: aborting due to 10 previous errors