mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 09:27:25 +00:00
22 lines
262 B
Rust
22 lines
262 B
Rust
|
#![warn(clippy::all)]
|
||
|
#![allow(clippy::blacklisted_name)]
|
||
|
#![allow(unused)]
|
||
|
|
||
|
enum Foo {
|
||
|
Bar,
|
||
|
Baz,
|
||
|
}
|
||
|
|
||
|
fn bar(foo: Foo) {
|
||
|
macro_rules! baz {
|
||
|
() => {
|
||
|
if let Foo::Bar = foo {}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
baz!();
|
||
|
baz!();
|
||
|
}
|
||
|
|
||
|
fn main() {}
|