]> git.lizzy.rs Git - rust.git/blob - src/test/ui/deduplicate-diagnostics-2.rs
Rollup merge of #82259 - osa1:issue82156, r=petrochenkov
[rust.git] / src / test / ui / deduplicate-diagnostics-2.rs
1 // build-pass
2 // revisions: duplicate deduplicate
3 //[deduplicate] compile-flags: -Z deduplicate-diagnostics=yes
4
5 fn main() {
6     match 0.0 {
7         1.0 => {} //~ WARNING floating-point types cannot be used in patterns
8                   //~| WARNING this was previously accepted
9                   //~| WARNING floating-point types cannot be used in patterns
10                   //~| WARNING this was previously accepted
11         2.0 => {} //~ WARNING floating-point types cannot be used in patterns
12                   //~| WARNING this was previously accepted
13                   //[duplicate]~| WARNING floating-point types cannot be used in patterns
14                   //[duplicate]~| WARNING this was previously accepted
15         _ => {}
16     }
17 }