about summary refs log tree commit diff
path: root/tests/ui/pattern/unit-pattern-matching-in-function-argument-7519.rs
blob: 7bfa9ee66256ab144ef7fd59643cadb80721a6fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ run-pass

/*
#7519 ICE pattern matching unit in function argument
https://github.com/rust-lang/rust/issues/7519
*/

fn foo(():()) { }

pub fn main() {
    foo(());
}