-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed as not planned
Labels
C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-infoStatus: Needs more info, such as a reproduction or more background for a feature request.Status: Needs more info, such as a reproduction or more background for a feature request.
Description
Problem
fn main() {
hello
}
This errors with E0425
. It would be nice if cargo offered a way to explain the error in depth!
error[E0425]: cannot find value `hello` in this scope
--> src/main.rs:2:5
|
2 | hello
| ^^^^^ not found in this scope
For more information about this error, try `rustc --explain E0425`.
error: could not compile `tests` (bin "tests") due to 1 previous error
You can of course copy and paste the command but it would be nicer to not have to.
Proposed Solution
You could run cargo check --explain
that opens up the help page for the given error.
Notes
No response
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-infoStatus: Needs more info, such as a reproduction or more background for a feature request.Status: Needs more info, such as a reproduction or more background for a feature request.