rust/tests/ui/or-patterns/issue-67514-irrefutable-param.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
165 B
Rust
Raw Normal View History

2019-12-27 18:11:20 +00:00
// 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);
}