]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/crashes/ice-3462.rs
Rollup merge of #86263 - fee1-dead:rustdoc-layout-variants, r=camelid
[rust.git] / src / tools / clippy / tests / ui / crashes / ice-3462.rs
1 #![warn(clippy::all)]
2 #![allow(clippy::blacklisted_name)]
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() {}