]> git.lizzy.rs Git - rust.git/blob - tests/ui/or-patterns/issue-67514-irrefutable-param.rs
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / ui / or-patterns / issue-67514-irrefutable-param.rs
1 // Check that we don't ICE for irrefutable or-patterns in function parameters
2
3 // check-pass
4
5 fn foo((Some(_) | None): Option<u32>) {}
6
7 fn main() {
8     foo(None);
9 }