2018-07-26 16:53:15 -05:00
|
|
|
// aux-build:suggestions-not-always-applicable.rs
|
2018-08-16 02:36:11 -05:00
|
|
|
// edition:2015
|
2018-07-26 16:53:15 -05:00
|
|
|
// run-rustfix
|
|
|
|
// rustfix-only-machine-applicable
|
2020-04-19 19:27:28 -05:00
|
|
|
// check-pass
|
2018-07-26 16:53:15 -05:00
|
|
|
|
|
|
|
#![feature(rust_2018_preview)]
|
|
|
|
#![warn(rust_2018_compatibility)]
|
|
|
|
|
|
|
|
extern crate suggestions_not_always_applicable as foo;
|
|
|
|
|
|
|
|
pub struct Foo;
|
|
|
|
|
|
|
|
mod test {
|
|
|
|
use crate::foo::foo;
|
|
|
|
|
|
|
|
#[foo] //~ WARN: absolute paths must start with
|
|
|
|
//~| WARN: previously accepted
|
|
|
|
//~| WARN: absolute paths
|
|
|
|
//~| WARN: previously accepted
|
|
|
|
fn main() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
test::foo();
|
|
|
|
}
|