From 01fbeb5b7ac85a67c9b46acbed5d9eeee4e844ce Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Fri, 15 Jun 2018 10:56:12 -0400 Subject: Moving allow statemate to the function block --- src/test/compile-fail/feature-gate-without_gate_irrefutable_pattern.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test') 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] } -- cgit 1.4.1-3-g733a5