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
{{ message }}
Repository navigation
Unfelpful error when trying to call member function as free function #66782
Checking playground v0.0.1 (/playground)
error[E0425]: cannot find function `a` in this scope
--> src/lib.rs:8:7
|
8 | { a(self, 2) }
| ^ not found in this scope
error: aborting due to previous error
For more information about this error, try `rustc --explain E0425`.
error: could not compile `playground`.
To learn more, run the command again with --verbose.
While I don't expect the code to compile, perhaps mention when trying to call a(self,...) that I should be calling self.a(...)?
Activity
Rollup merge of rust-lang#66913 - VirrageS:help-self, r=varkor
Rollup merge of rust-lang#66913 - VirrageS:help-self, r=varkor
Rollup merge of rust-lang#66913 - VirrageS:help-self, r=varkor,Centril
Rollup merge of rust-lang#66913 - VirrageS:help-self, r=varkor,Centril
ChrisJefferson commentedon Jan 4, 2020
Thanks!