]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/crashes/ice-3462.rs
Merge commit 'da5a6fb1b65ec6581a67e942a3850f6bc15a552c' into clippyup
[rust.git] / src / tools / clippy / tests / ui / crashes / ice-3462.rs
1 // run-pass
2
3 #![warn(clippy::all)]
4 #![allow(clippy::blacklisted_name)]
5 #![allow(unused)]
6
7 /// Test for https://github.com/rust-lang/rust-clippy/issues/3462
8
9 enum Foo {
10     Bar,
11     Baz,
12 }
13
14 fn bar(foo: Foo) {
15     macro_rules! baz {
16         () => {
17             if let Foo::Bar = foo {}
18         };
19     }
20
21     baz!();
22     baz!();
23 }
24
25 fn main() {}