blob: 0e8a837d987f6b48c598ef0eb80bfb00d7856833 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Regression test for #86600, where an instance of the
// `illegal_floating_point_literal_pattern` lint was issued twice.
// check-pass
fn main() {
let x = 42.0;
match x {
5.0 => {}
//~^ WARNING: floating-point types cannot be used in patterns
//~| WARNING: this was previously accepted by the compiler
_ => {}
}
}
|