mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 00:47:16 +00:00
775372db90
We can add a bang-style proc macro again once it stabilizes (we can use the proc macro hack, but it's unnecessary for now)
12 lines
No EOL
176 B
Rust
12 lines
No EOL
176 B
Rust
#[macro_use]
|
|
extern crate clippy_mini_macro_test;
|
|
|
|
#[deny(warnings)]
|
|
fn main() {
|
|
let x = Foo;
|
|
println!("{:?}", x);
|
|
}
|
|
|
|
|
|
#[derive(ClippyMiniMacroTest, Debug)]
|
|
struct Foo; |