]> git.lizzy.rs Git - rust.git/blob - tests/ui/rust-2018/extern-crate-referenced-by-self-path.rs
Auto merge of #106520 - ehuss:update-mdbook, r=Mark-Simulacrum
[rust.git] / tests / ui / rust-2018 / extern-crate-referenced-by-self-path.rs
1 // run-pass
2 // aux-build:edition-lint-paths.rs
3 // run-rustfix
4
5 // Oddball: `edition_lint_paths` is accessed via this `self` path
6 // rather than being accessed directly. Unless we rewrite that path,
7 // we can't drop the extern crate.
8
9 #![feature(rust_2018_preview)]
10 #![deny(absolute_paths_not_starting_with_crate)]
11
12 extern crate edition_lint_paths;
13 use self::edition_lint_paths::foo;
14
15 fn main() {
16     foo();
17 }