2019-10-15 12:57:54 +00:00
|
|
|
#![warn(clippy::use_self)]
|
|
|
|
|
|
|
|
#[macro_use]
|
2020-01-03 08:03:07 +00:00
|
|
|
#[path = "auxiliary/use_self_macro.rs"]
|
2019-10-15 12:57:54 +00:00
|
|
|
mod use_self_macro;
|
|
|
|
|
|
|
|
struct Foo {
|
|
|
|
a: u32,
|
|
|
|
}
|
|
|
|
|
|
|
|
use_self! {
|
|
|
|
impl Foo {
|
|
|
|
fn func(&self) {
|
|
|
|
[fields(
|
|
|
|
a
|
|
|
|
)]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|