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
|
2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be 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();
|
|
|
|
}
|