This commit is contained in:
est31 2017-04-29 10:09:02 +02:00
parent 51c3173465
commit 37fb676fcf

View file

@ -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
_ => {},
}
}