]>
Commit | Line | Data |
---|---|---|
f20569fa | 1 | #![warn(clippy::all)] |
c295e0f8 | 2 | #![allow(clippy::blacklisted_name, clippy::equatable_if_let)] |
f20569fa XL |
3 | #![allow(unused)] |
4 | ||
5 | /// Test for https://github.com/rust-lang/rust-clippy/issues/3462 | |
6 | ||
7 | enum Foo { | |
8 | Bar, | |
9 | Baz, | |
10 | } | |
11 | ||
12 | fn bar(foo: Foo) { | |
13 | macro_rules! baz { | |
14 | () => { | |
15 | if let Foo::Bar = foo {} | |
16 | }; | |
17 | } | |
18 | ||
19 | baz!(); | |
20 | baz!(); | |
21 | } | |
22 | ||
23 | fn main() {} |