2024-11-24 17:37:25 -08:00
|
|
|
//@ proc-macro: suggestions-not-always-applicable.rs
|
2018-08-16 10:36:11 +03:00
|
|
|
//@ edition:2015
|
2018-07-26 14:53:15 -07:00
|
|
|
//@ run-rustfix
|
|
|
|
|
//@ rustfix-only-machine-applicable
|
2020-04-19 17:27:28 -07:00
|
|
|
//@ check-pass
|
2018-07-26 14:53:15 -07:00
|
|
|
|
|
|
|
|
#![warn(rust_2018_compatibility)]
|
|
|
|
|
|
|
|
|
|
extern crate suggestions_not_always_applicable as foo;
|
|
|
|
|
|
|
|
|
|
pub struct Foo;
|
|
|
|
|
|
|
|
|
|
mod test {
|
|
|
|
|
use crate::foo::foo;
|
|
|
|
|
|
2021-04-16 11:06:51 +02:00
|
|
|
#[foo]
|
|
|
|
|
fn main() {}
|
2018-07-26 14:53:15 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
test::foo();
|
|
|
|
|
}
|