Let pattern matching on tuple structs broken for double generic functions. #11508
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
The demo code from Closed01 doesn't compile.
The compiler gives an error message of
@huonw found a workaround by wrapping it in a function:
rust fn extract<T>(Closed01(x): Closed01<T>) -> T { x }
I'm not sure what exactly is going on here, but I'm guessing it has something to do with the double generic function <Closed01> and let pattern matching for tuple structs.
The text was updated successfully, but these errors were encountered: