rust/src/test/ui/issues/issue-10200.rs
2018-12-25 21:08:33 -07:00

10 lines
191 B
Rust

struct Foo(bool);
fn foo(_: usize) -> Foo { Foo(false) }
fn main() {
match Foo(true) {
foo(x) //~ ERROR expected tuple struct/variant, found function `foo`
=> ()
}
}