Skip to content

Commit baec524

Browse files
committed
Auto merge of #3617 - matthiaskrgr:3462_test, r=phansch
add testcase for #3462
2 parents e6aff69 + 24ff813 commit baec524

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

tests/run-pass/ice-3462.rs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Copyright 2014-2019 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution.
3+
//
4+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7+
// option. This file may not be copied, modified, or distributed
8+
// except according to those terms.
9+
10+
#![warn(clippy::all)]
11+
#![allow(clippy::blacklisted_name)]
12+
#![allow(unused)]
13+
14+
enum Foo {
15+
Bar,
16+
Baz,
17+
}
18+
19+
fn bar(foo: Foo) {
20+
macro_rules! baz {
21+
() => {
22+
if let Foo::Bar = foo {}
23+
};
24+
}
25+
26+
baz!();
27+
baz!();
28+
}
29+
30+
fn main() {}

0 commit comments

Comments
 (0)