about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test/compile-fail/feature-gate-without_gate_irrefutable_pattern.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/feature-gate-without_gate_irrefutable_pattern.rs b/src/test/compile-fail/feature-gate-without_gate_irrefutable_pattern.rs
index 7cd026e21d6..7bcddbb6a2f 100644
--- a/src/test/compile-fail/feature-gate-without_gate_irrefutable_pattern.rs
+++ b/src/test/compile-fail/feature-gate-without_gate_irrefutable_pattern.rs
@@ -10,8 +10,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[allow(irrefutable_let_patterns)]
 fn main() {
-    #[allow(irrefutable_let_patterns)]
     if let _ = 5 {}
     //~^ ERROR 15:12: 15:13: irrefutable if-let pattern [E0162]
 }