summary refs log tree commit diff
path: root/src/test/ui/deduplicate-diagnostics-2.rs
blob: f46a7c0c1c4d816954aeb64ad052ccb9c51ef426 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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
        _ => {}
    }
}