fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
671 B30 linesraw
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
8crate mod foo {
9    crate mod bar {
10        crate mod baz { }
11        crate mod baz1 { }
12
13        crate struct XX;
14    }
15}
16
17use crate::foo::{bar::{baz::{}}};
18//~^ ERROR absolute paths must start with
19//~| WARN this was previously accepted
20
21use crate::foo::{bar::{XX, baz::{}}};
22//~^ ERROR absolute paths must start with
23//~| WARN this was previously accepted
24
25use crate::foo::{bar::{baz::{}, baz1::{}}};
26//~^ ERROR absolute paths must start with
27//~| WARN this was previously accepted
28
29fn main() {
30}