]> git.lizzy.rs Git - rust.git/blob - tests/ui/crashes/ice-3462.rs
Merge pull request #3918 from matthiaskrgr/typos
[rust.git] / 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() {}