]> git.lizzy.rs Git - rust.git/blob - tests/ui/rust-2018/suggestions-not-always-applicable.rs
Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco
[rust.git] / tests / ui / rust-2018 / suggestions-not-always-applicable.rs
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
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]
18     fn main() {}
19 }
20
21 fn main() {
22     test::foo();
23 }