We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51c3173 commit 37fb676Copy full SHA for 37fb676
src/test/compile-fail/issue-41255.rs
@@ -39,13 +39,17 @@ fn main() {
39
match (x, 5) {
40
(3.14, 1) => {}, //~ ERROR floating-point literals cannot be used
41
//~| WARNING hard error
42
+ //~| ERROR floating-point literals cannot be used
43
+ //~| WARNING hard error
44
_ => {},
45
}
46
// Or structs
47
struct Foo { x: f32 };
48
match (Foo { x }) {
49
Foo { x: 2.0 } => {}, //~ ERROR floating-point literals cannot be used
50
51
52
53
54
55
0 commit comments