rust/tests/ui/pattern/unit-pattern-matching-in-function-argument-7519.rs
2025-08-02 15:29:16 -04:00

13 lines
170 B
Rust

//@ run-pass
/*
#7519 ICE pattern matching unit in function argument
https://github.com/rust-lang/rust/issues/7519
*/
fn foo(():()) { }
pub fn main() {
foo(());
}