]> git.lizzy.rs Git - rust.git/blob - src/test/ui-fulldeps/unnecessary-extern-crate.stderr
rustc: Include semicolon when removing `extern crate`
[rust.git] / src / test / ui-fulldeps / unnecessary-extern-crate.stderr
1 error: `extern crate` is unnecessary in the new edition
2   --> $DIR/unnecessary-extern-crate.rs:14:1
3    |
4 LL | extern crate alloc;
5    | ^^^^^^^^^^^^^^^^^^^ help: remove it
6    |
7 note: lint level defined here
8   --> $DIR/unnecessary-extern-crate.rs:11:9
9    |
10 LL | #![deny(unnecessary_extern_crate)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: `extern crate` is unnecessary in the new edition
14   --> $DIR/unnecessary-extern-crate.rs:17:1
15    |
16 LL | extern crate alloc as x;
17    | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use `use`: `use alloc as x;`
18
19 error: `extern crate` is unnecessary in the new edition
20   --> $DIR/unnecessary-extern-crate.rs:23:1
21    |
22 LL | pub extern crate test as y;
23    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `pub use`: `pub use test as y;`
24
25 error: `extern crate` is unnecessary in the new edition
26   --> $DIR/unnecessary-extern-crate.rs:26:1
27    |
28 LL | pub extern crate libc;
29    | ^^^^^^^^^^^^^^^^^^^^^^ help: use `pub use`: `pub use libc;`
30
31 error: `extern crate` is unnecessary in the new edition
32   --> $DIR/unnecessary-extern-crate.rs:32:5
33    |
34 LL |     extern crate alloc;
35    |     ^^^^^^^^^^^^^^^^^^^ help: use `use`: `use alloc;`
36
37 error: `extern crate` is unnecessary in the new edition
38   --> $DIR/unnecessary-extern-crate.rs:35:5
39    |
40 LL |     extern crate alloc as x;
41    |     ^^^^^^^^^^^^^^^^^^^^^^^^ help: use `use`: `use alloc as x;`
42
43 error: `extern crate` is unnecessary in the new edition
44   --> $DIR/unnecessary-extern-crate.rs:38:5
45    |
46 LL |     pub extern crate test;
47    |     ^^^^^^^^^^^^^^^^^^^^^^ help: use `pub use`: `pub use test;`
48
49 error: `extern crate` is unnecessary in the new edition
50   --> $DIR/unnecessary-extern-crate.rs:41:5
51    |
52 LL |     pub extern crate test as y;
53    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `pub use`: `pub use test as y;`
54
55 error: `extern crate` is unnecessary in the new edition
56   --> $DIR/unnecessary-extern-crate.rs:45:9
57    |
58 LL |         extern crate alloc;
59    |         ^^^^^^^^^^^^^^^^^^^ help: use `use`: `use alloc;`
60
61 error: `extern crate` is unnecessary in the new edition
62   --> $DIR/unnecessary-extern-crate.rs:48:9
63    |
64 LL |         extern crate alloc as x;
65    |         ^^^^^^^^^^^^^^^^^^^^^^^^ help: use `use`: `use alloc as x;`
66
67 error: aborting due to 10 previous errors
68