]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2018/edition-lint-nested-empty-paths.fixed
Rollup merge of #62351 - RalfJung:drop-in-place, r=cramertj
[rust.git] / src / test / ui / rust-2018 / edition-lint-nested-empty-paths.fixed
1 // run-rustfix
2
3 #![feature(rust_2018_preview, crate_visibility_modifier)]
4 #![deny(absolute_paths_not_starting_with_crate)]
5 #![allow(unused_imports)]
6 #![allow(dead_code)]
7
8 crate mod foo {
9     crate mod bar {
10         crate mod baz { }
11         crate mod baz1 { }
12
13         crate struct XX;
14     }
15 }
16
17 use crate::foo::{bar::{baz::{}}};
18 //~^ ERROR absolute paths must start with
19 //~| WARN this was previously accepted
20
21 use crate::foo::{bar::{XX, baz::{}}};
22 //~^ ERROR absolute paths must start with
23 //~| WARN this was previously accepted
24
25 use crate::foo::{bar::{baz::{}, baz1::{}}};
26 //~^ ERROR absolute paths must start with
27 //~| WARN this was previously accepted
28
29 fn main() {
30 }