]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/crashes/ice-3462.rs
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / crashes / ice-3462.rs
CommitLineData
f20569fa
XL
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
7enum Foo {
8 Bar,
9 Baz,
10}
11
12fn bar(foo: Foo) {
13 macro_rules! baz {
14 () => {
15 if let Foo::Bar = foo {}
16 };
17 }
18
19 baz!();
20 baz!();
21}
22
23fn main() {}