You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
structThing;implThing{fntakes_unit(&self,u:()){ u }fnfunc(&self){self.takes_unit()}}
Produces a malformed "help" message:
|
3 | fn takes_unit(&self, u: ()) { u }
| --------------------------------- defined here
...
6 | self.takes_unit()
| ^^^^^^^^^^
|
help: expected the unit value `()`. You can create one with a pair of parenthesis
|
6 | self.takes_uni()t()
| ^^