-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An error message should not contain a keyword x such that searching rust + x has 0 relevant results on the first page #42603
Comments
Is it possible you could share the code that results in this error? |
Anything like this'll work: trait Tr { fn recv(); }
fn main() {
let t: &Tr = panic!();
} |
What @jonas-schievink said, my code:
|
For me the fourth result for "rust method has no receiver" is the Error Index, where there's a full explanation of error E0038 (which you can also see using
|
@estebank I hit 1st and 3rd results on that one and they were irrelevant so I figured i'll try to understand the problem from the bottom. That's why I searched "Rust receiver" (without quotes) as the issue title says. |
I think "receiver" is the correct term here and as mentioned, |
The receiver term is pretty standard "OO jargon", but I think that it would be clearer still for us to say "no |
Also, in my opinion, an associated function without a parameter named |
Refer to "`self` type" instead of "receiver type" Fix rust-lang#42603.
Case in point: I get an error:
I looked up
rust receiver
but couldn't find any relevant results. Upon investigating further, in this case,method add does not have a self parameter
would be more appropriate.The text was updated successfully, but these errors were encountered: