fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// aux-build:suggestions-not-always-applicable.rs 2// edition:2015 3// run-rustfix 4// rustfix-only-machine-applicable 5// 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] 18 fn main() {} 19} 20 21fn main() { 22 test::foo(); 23}