1 // aux-build:edition-lint-paths.rs
4 // Oddball: crate is renamed, making it harder for us to rewrite
5 // paths. We don't (and we leave the `extern crate` in place).
7 #![feature(rust_2018_preview)]
8 #![deny(absolute_paths_not_starting_with_crate)]
10 extern crate edition_lint_paths as my_crate;
12 use crate::my_crate::foo;
13 //~^ ERROR absolute paths must start
14 //~| WARNING this is accepted in the current edition