summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/usefulness/issue-30240.rs
blob: a0c0d1626ec45d3ddb19fa669834140ca43d7a8b (plain)
1
2
3
4
5
6
7
8
9
10
fn main() {
    match "world" { //~ ERROR non-exhaustive patterns: `&_`
        "hello" => {}
    }

    match "world" { //~ ERROR non-exhaustive patterns: `&_`
        ref _x if false => {}
        "hello" => {}
    }
}