We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e6aff69 + 24ff813 commit baec524Copy full SHA for baec524
tests/run-pass/ice-3462.rs
@@ -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
28
29
30
+fn main() {}
0 commit comments