mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
22 lines
268 B
Rust
22 lines
268 B
Rust
#![warn(clippy::use_self)]
|
|
|
|
#[macro_use]
|
|
#[path = "auxiliary/use_self_macro.rs"]
|
|
mod use_self_macro;
|
|
|
|
struct Foo {
|
|
a: u32,
|
|
}
|
|
|
|
use_self! {
|
|
impl Foo {
|
|
fn func(&self) {
|
|
[fields(
|
|
a
|
|
)]
|
|
}
|
|
}
|
|
}
|
|
|
|
fn main() {}
|