1 // aux-build:edition-lint-paths.rs
4 #![feature(rust_2018_preview)]
5 #![deny(absolute_paths_not_starting_with_crate)]
8 extern crate edition_lint_paths;
11 use edition_lint_paths;
14 //~| WARN this was previously accepted
20 //~| WARN this was previously accepted
21 use crate::{bar as something_else};
23 use {Bar as SomethingElse, main};
25 //~| WARN this was previously accepted
27 use crate::{Bar as SomethingElse2, main as another_main};
32 pub trait SomeTrait { }
37 //~| WARN this was previously accepted
40 use edition_lint_paths as foo;
49 //~| WARN this was previously accepted
52 impl ::foo::SomeTrait for u32 { }
54 //~| WARN this was previously accepted
59 //~| WARN this was previously accepted
61 let x = crate::bar::Bar;
62 let x = self::bar::Bar;
66 use edition_lint_paths as bar;
67 edition_lint_paths::foo();
69 ::edition_lint_paths::foo();