summaryrefslogtreecommitdiffstats
path: root/src/test/ui/deref-patterns/default-infer.rs
blob: 050b847305b16167e1fe8587501e2ef089b14f63 (plain)
1
2
3
4
5
6
7
8
9
// check-pass
#![feature(string_deref_patterns)]

fn main() {
    match <_ as Default>::default() {
        "" => (),
        _ => unreachable!(),
    }
}