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
Unhelpful error when forgetting to handle a result and call a method on it #95729
error[E0599]: no method named `get` found for enum `Result` in the current scope
--> src/main.rs:11:9
|
11 | res.get();
| ^^^ method not found in `Result<Foo, ()>`
For more information about this error, try `rustc --explain E0599`.
Ideally the output should look like:
error[E0599]: no method named `get` found for enum `Result` in the current scope
--> src/main.rs:11:9
|
11 | res.get();
| ^^^ method not found in `Result<Foo, ()>`
note: `Result<Foo, ()>`'s success value, `Foo`, has a method named `get`.
note: To get to the success value of a Result, the error case must be handled first.
For more information about this error, try `rustc --explain E0599`.
Activity
compiler-errors commentedon Apr 7, 2022
@rustbot claim
Rollup merge of rust-lang#96271 - compiler-errors:suggest-question-ma…
Rollup merge of rust-lang#96271 - compiler-errors:suggest-question-ma…