Skip to content

Commit 01fbeb5

Browse files
authored
Moving allow statemate to the function block
1 parent 84de498 commit 01fbeb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/compile-fail/feature-gate-without_gate_irrefutable_pattern.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
// option. This file may not be copied, modified, or distributed
1111
// except according to those terms.
1212

13+
#[allow(irrefutable_let_patterns)]
1314
fn main() {
14-
#[allow(irrefutable_let_patterns)]
1515
if let _ = 5 {}
1616
//~^ ERROR 15:12: 15:13: irrefutable if-let pattern [E0162]
1717
}

0 commit comments

Comments
 (0)