summaryrefslogtreecommitdiffstats
path: root/tests/ui/deref-patterns/gate.rs
blob: ff50e30dea8c8935a9a6631726f458d53fae5381 (plain)
1
2
3
4
5
6
7
// gate-test-string_deref_patterns
fn main() {
    match String::new() {
        "" | _ => {}
        //~^ mismatched types
    }
}