summaryrefslogtreecommitdiffstats
path: root/src/test/ui/resolve/issue-10200.rs
blob: fe36a7e00bff3dd6bff2dc546b1899cd6e10503d (plain)
1
2
3
4
5
6
7
8
9
struct Foo(bool);
fn foo(_: usize) -> Foo { Foo(false) }

fn main() {
    match Foo(true) {
        foo(x) //~ ERROR expected tuple struct or tuple variant, found function `foo`
        => ()
    }
}