]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2018/extern-crate-idiomatic.rs
Rollup merge of #62351 - RalfJung:drop-in-place, r=cramertj
[rust.git] / src / test / ui / rust-2018 / extern-crate-idiomatic.rs
1 // run-pass
2 // aux-build:edition-lint-paths.rs
3 // compile-flags:--extern edition_lint_paths
4 // run-rustfix
5
6 // The "normal case". Ideally we would remove the `extern crate` here,
7 // but we don't.
8
9 #![feature(rust_2018_preview)]
10 #![deny(absolute_paths_not_starting_with_crate)]
11
12 extern crate edition_lint_paths;
13
14 use edition_lint_paths::foo;
15
16 fn main() {
17     foo();
18 }