]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2018/suggestions-not-always-applicable.fixed
Rollup merge of #62351 - RalfJung:drop-in-place, r=cramertj
[rust.git] / src / test / ui / rust-2018 / suggestions-not-always-applicable.fixed
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
10 extern crate suggestions_not_always_applicable as foo;
11
12 pub struct Foo;
13
14 mod 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
25 fn main() {
26     test::foo();
27 }