]>
Commit | Line | Data |
---|---|---|
b7449926 XL |
1 | // aux-build:suggestions-not-always-applicable.rs |
2 | // edition:2015 | |
3 | // run-rustfix | |
4 | // rustfix-only-machine-applicable | |
94b46f34 XL |
5 | // compile-pass |
6 | ||
7 | #![feature(rust_2018_preview)] | |
b7449926 | 8 | #![warn(rust_2018_compatibility)] |
0531ce1d | 9 | |
b7449926 XL |
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 | } |