]> git.proxmox.com Git - rustc.git/blame - src/test/ui/rust-2018/suggestions-not-always-applicable.rs
New upstream version 1.38.0+dfsg1
[rustc.git] / src / test / ui / rust-2018 / suggestions-not-always-applicable.rs
CommitLineData
b7449926
XL
1// aux-build:suggestions-not-always-applicable.rs
2// edition:2015
3// run-rustfix
4// rustfix-only-machine-applicable
416331ca 5// build-pass (FIXME(62277): could be check-pass?)
94b46f34
XL
6
7#![feature(rust_2018_preview)]
b7449926 8#![warn(rust_2018_compatibility)]
0531ce1d 9
b7449926
XL
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}