18 lines
741 B
Rust
18 lines
741 B
Rust
// build-pass
|
|
// revisions: duplicate deduplicate
|
|
//[deduplicate] compile-flags: -Z deduplicate-diagnostics=yes
|
|
|
|
fn main() {
|
|
match 0.0 {
|
|
1.0 => {} //~ WARNING floating-point types cannot be used in patterns
|
|
//~| WARNING this was previously accepted
|
|
//~| WARNING floating-point types cannot be used in patterns
|
|
//~| WARNING this was previously accepted
|
|
2.0 => {} //~ WARNING floating-point types cannot be used in patterns
|
|
//~| WARNING this was previously accepted
|
|
//[duplicate]~| WARNING floating-point types cannot be used in patterns
|
|
//[duplicate]~| WARNING this was previously accepted
|
|
_ => {}
|
|
}
|
|
}
|