fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1// aux-build:suggestions-not-always-applicable.rs 2// edition:2015 3// run-rustfix 4// rustfix-only-machine-applicable 5// build-pass (FIXME(62277): could be check-pass?) 6 7#![feature(rust_2018_preview)] 8#![warn(rust_2018_compatibility)] 9 10extern crate suggestions_not_always_applicable as foo; 11 12pub struct Foo; 13 14mod test { 15 use crate::foo::foo; 16 17 #[foo] //~ WARN: absolute paths must start with 18 //~| WARN: previously accepted 19 //~| WARN: absolute paths 20 //~| WARN: previously accepted 21 fn main() { 22 } 23} 24 25fn main() { 26 test::foo(); 27}