rust-clippy/tests/run-pass/ice-3462.rs

22 lines
262 B
Rust
Raw Normal View History

2019-01-03 10:08:05 +00:00
#![warn(clippy::all)]
#![allow(clippy::blacklisted_name)]
#![allow(unused)]
enum Foo {
Bar,
Baz,
}
fn bar(foo: Foo) {
macro_rules! baz {
() => {
if let Foo::Bar = foo {}
};
}
baz!();
baz!();
}
fn main() {}