]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-10200.rs
Rollup merge of #106144 - tgross35:patch-1, r=Mark-Simulacrum
[rust.git] / tests / ui / resolve / issue-10200.rs
1 struct Foo(bool);
2 fn foo(_: usize) -> Foo { Foo(false) }
3
4 fn main() {
5     match Foo(true) {
6         foo(x) //~ ERROR expected tuple struct or tuple variant, found function `foo`
7         => ()
8     }
9 }