diff options
| author | est31 <MTest31@outlook.com> | 2017-04-29 10:09:02 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2017-05-02 19:59:22 +0200 |
| commit | 37fb676fcf99631b0acd69585e5b3899485fd96b (patch) | |
| tree | 2b1b0d06a069f4c5b4a78772cbc48fca61d27182 | |
| parent | 51c3173465ef4e158117da2421707f3b0a9d3e25 (diff) | |
| download | rust-37fb676fcf99631b0acd69585e5b3899485fd96b.tar.gz rust-37fb676fcf99631b0acd69585e5b3899485fd96b.zip | |
Fix test
| -rw-r--r-- | src/test/compile-fail/issue-41255.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/compile-fail/issue-41255.rs b/src/test/compile-fail/issue-41255.rs index 191b867e7a8..a4585f7bac7 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 _ => {}, } } |
