From 37fb676fcf99631b0acd69585e5b3899485fd96b Mon Sep 17 00:00:00 2001 From: est31 Date: Sat, 29 Apr 2017 10:09:02 +0200 Subject: [PATCH] Fix test --- src/test/compile-fail/issue-41255.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/compile-fail/issue-41255.rs b/src/test/compile-fail/issue-41255.rs index 191b867e7a8b..a4585f7bac7d 100644 --- a/src/test/compile-fail/issue-41255.rs +++ b/src/test/compile-fail/issue-41255.rs @@ -39,6 +39,8 @@ fn main() { match (x, 5) { (3.14, 1) => {}, //~ ERROR floating-point literals cannot be used //~| WARNING hard error + //~| ERROR floating-point literals cannot be used + //~| WARNING hard error _ => {}, } // Or structs @@ -46,6 +48,8 @@ fn main() { match (Foo { x }) { Foo { x: 2.0 } => {}, //~ ERROR floating-point literals cannot be used //~| WARNING hard error + //~| ERROR floating-point literals cannot be used + //~| WARNING hard error _ => {}, } }