gccrs
gccrs copied to clipboard
Empty ```TupleStructPattern``` assumed to be function call
I tried this code:
struct S();
pub fn main() {
match S() {
S() => {}
}
}
I expected to see this happen: no error
Instead, this happened:
<source>:5:9: error: expected tuple struct or tuple variant, found associated function [E0164]
5 | S() => {}
| ^
| function calls are not allowed in patterns
interesting, thanks :) this might be a name resolution issue
Can I work on this? :)