]>
Commit | Line | Data |
---|---|---|
94b46f34 XL |
1 | // run-rustfix |
2 | ||
923072b8 | 3 | #![feature(rust_2018_preview)] |
83c7162d | 4 | #![deny(absolute_paths_not_starting_with_crate)] |
94b46f34 XL |
5 | #![allow(unused_imports)] |
6 | #![allow(dead_code)] | |
7 | ||
923072b8 FG |
8 | pub(crate) mod foo { |
9 | pub(crate) mod bar { | |
10 | pub(crate) mod baz { } | |
11 | pub(crate) mod baz1 { } | |
94b46f34 | 12 | |
923072b8 | 13 | pub(crate) struct XX; |
94b46f34 | 14 | } |
83c7162d XL |
15 | } |
16 | ||
94b46f34 XL |
17 | use foo::{bar::{baz::{}}}; |
18 | //~^ ERROR absolute paths must start with | |
136023e0 | 19 | //~| WARN this is accepted in the current edition |
83c7162d | 20 | |
94b46f34 XL |
21 | use foo::{bar::{XX, baz::{}}}; |
22 | //~^ ERROR absolute paths must start with | |
136023e0 | 23 | //~| WARN this is accepted in the current edition |
5099ac24 FG |
24 | //~| ERROR absolute paths must start with |
25 | //~| WARN this is accepted in the current edition | |
83c7162d | 26 | |
94b46f34 XL |
27 | use foo::{bar::{baz::{}, baz1::{}}}; |
28 | //~^ ERROR absolute paths must start with | |
136023e0 | 29 | //~| WARN this is accepted in the current edition |
5099ac24 FG |
30 | //~| ERROR absolute paths must start with |
31 | //~| WARN this is accepted in the current edition | |
83c7162d XL |
32 | |
33 | fn main() { | |
83c7162d | 34 | } |