Skip to content

Commit 37fb676

Browse files
committed
Fix test
1 parent 51c3173 commit 37fb676

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/compile-fail/issue-41255.rs

+4
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,17 @@ fn main() {
3939
match (x, 5) {
4040
(3.14, 1) => {}, //~ ERROR floating-point literals cannot be used
4141
//~| WARNING hard error
42+
//~| ERROR floating-point literals cannot be used
43+
//~| WARNING hard error
4244
_ => {},
4345
}
4446
// Or structs
4547
struct Foo { x: f32 };
4648
match (Foo { x }) {
4749
Foo { x: 2.0 } => {}, //~ ERROR floating-point literals cannot be used
4850
//~| WARNING hard error
51+
//~| ERROR floating-point literals cannot be used
52+
//~| WARNING hard error
4953
_ => {},
5054
}
5155
}

0 commit comments

Comments
 (0)