summaryrefslogtreecommitdiffstats
path: root/tests/ui/or-patterns/issue-67514-irrefutable-param.rs
blob: 73931def89584038d9199cc2f2540df237df7609 (plain)
1
2
3
4
5
6
7
8
9
// Check that we don't ICE for irrefutable or-patterns in function parameters

// check-pass

fn foo((Some(_) | None): Option<u32>) {}

fn main() {
    foo(None);
}