]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2018/extern-crate-idiomatic-in-2018.stderr
rustc_resolve: don't allow `::crate_name` to bypass `extern_prelude`.
[rust.git] / src / test / ui / rust-2018 / extern-crate-idiomatic-in-2018.stderr
1 error: unused extern crate
2   --> $DIR/extern-crate-idiomatic-in-2018.rs:22:1
3    |
4 LL | extern crate edition_lint_paths;
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove it
6    |
7 note: lint level defined here
8   --> $DIR/extern-crate-idiomatic-in-2018.rs:19:9
9    |
10 LL | #![deny(rust_2018_idioms)]
11    |         ^^^^^^^^^^^^^^^^
12    = note: #[deny(unused_extern_crates)] implied by #[deny(rust_2018_idioms)]
13
14 error: `extern crate` is not idiomatic in the new edition
15   --> $DIR/extern-crate-idiomatic-in-2018.rs:25:1
16    |
17 LL | extern crate edition_lint_paths as bar;
18    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert it to a `use`
19
20 error: aborting due to 2 previous errors
21