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 is accepted in the current edition
21 //~| WARN this is accepted in the current edition
23 use crate::bar as something_else;
25 use {main, Bar as SomethingElse};
27 //~| WARN this is accepted in the current edition
29 //~| WARN this is accepted in the current edition
31 //~| WARN this is accepted in the current edition
33 use crate::{main as another_main, Bar as SomethingElse2};
37 pub trait SomeTrait {}
42 //~| WARN this is accepted in the current edition
45 use edition_lint_paths as foo;
54 //~| WARN this is accepted in the current edition
57 impl ::foo::SomeTrait for u32 {}
59 //~| WARN this is accepted in the current edition
64 //~| WARN this is accepted in the current edition
67 let x = crate::bar::Bar;
68 let x = self::bar::Bar;
72 use edition_lint_paths as bar;
73 edition_lint_paths::foo();
75 ::edition_lint_paths::foo();