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