diff options
Diffstat (limited to 'tests/ui/resolve/issue-10200.rs')
-rw-r--r-- | tests/ui/resolve/issue-10200.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/resolve/issue-10200.rs b/tests/ui/resolve/issue-10200.rs new file mode 100644 index 000000000..fe36a7e00 --- /dev/null +++ b/tests/ui/resolve/issue-10200.rs @@ -0,0 +1,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` + => () + } +} |