]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/crashes/ice-3462.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / src / tools / clippy / tests / ui / crashes / ice-3462.rs
1 #![warn(clippy::all)]
2 #![allow(clippy::disallowed_names, clippy::equatable_if_let)]
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() {}