2018-05-22 18:01:09 -05:00
|
|
|
// run-rustfix
|
|
|
|
|
2022-05-20 20:06:44 -05:00
|
|
|
#![feature(rust_2018_preview)]
|
2018-05-18 17:13:53 -05:00
|
|
|
#![deny(absolute_paths_not_starting_with_crate)]
|
2018-05-22 18:01:09 -05:00
|
|
|
#![allow(unused_imports)]
|
|
|
|
#![allow(dead_code)]
|
|
|
|
|
2022-05-20 20:06:44 -05:00
|
|
|
pub(crate) mod foo {
|
|
|
|
pub(crate) mod bar {
|
|
|
|
pub(crate) mod baz { }
|
|
|
|
pub(crate) mod baz1 { }
|
2018-05-22 18:01:09 -05:00
|
|
|
|
2022-05-20 20:06:44 -05:00
|
|
|
pub(crate) struct XX;
|
2018-05-22 18:01:09 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
use foo::{bar::{baz::{}}};
|
|
|
|
//~^ ERROR absolute paths must start with
|
2021-06-16 07:27:44 -05:00
|
|
|
//~| WARN this is accepted in the current edition
|
2018-05-22 18:01:09 -05:00
|
|
|
|
|
|
|
use foo::{bar::{XX, baz::{}}};
|
|
|
|
//~^ ERROR absolute paths must start with
|
2021-06-16 07:27:44 -05:00
|
|
|
//~| WARN this is accepted in the current edition
|
2022-01-23 16:05:48 -06:00
|
|
|
//~| ERROR absolute paths must start with
|
|
|
|
//~| WARN this is accepted in the current edition
|
2018-05-22 18:01:09 -05:00
|
|
|
|
|
|
|
use foo::{bar::{baz::{}, baz1::{}}};
|
|
|
|
//~^ ERROR absolute paths must start with
|
2021-06-16 07:27:44 -05:00
|
|
|
//~| WARN this is accepted in the current edition
|
2022-01-23 16:05:48 -06:00
|
|
|
//~| ERROR absolute paths must start with
|
|
|
|
//~| WARN this is accepted in the current edition
|
2018-05-22 18:01:09 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|