fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1// run-rustfix 2 3#![feature(rust_2018_preview, crate_visibility_modifier)] 4#![deny(absolute_paths_not_starting_with_crate)] 5 6use crate::foo::{a, b}; 7//~^ ERROR absolute paths must start with 8//~| this was previously accepted 9 10mod foo { 11 crate fn a() {} 12 crate fn b() {} 13 crate fn c() {} 14} 15 16fn main() { 17 a(); 18 b(); 19 20 { 21 use crate::foo::{self as x, c}; 22 //~^ ERROR absolute paths must start with 23 //~| this was previously accepted 24 x::a(); 25 c(); 26 } 27}