about summary refs log tree commit diff
path: root/tests/ui/deref-patterns/gate.rs
blob: 835fdf854d2c46c0045bc350336d5b6017ac50a3 (plain)
1
2
3
4
5
6
7
// gate-test-string_deref_patterns
fn main() {
    match String::new() {
        "" | _ => {}
        //~^ ERROR mismatched types
    }
}