-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
rust-lang/rust
#25381Labels
A-diagnosticsArea: Error and warning messages generated by Cargo itself.Area: Error and warning messages generated by Cargo itself.A-toolingArea: interaction with other toolsArea: interaction with other tools
Description
fn foo() {
match () {
() => {}
_ => {}
}
}
cargo build
Compiling error-explain v0.1.0 (file:///home/huon/projects/test-rust/error-explain)
src/lib.rs:4:9: 4:10 error: unreachable pattern [E0001]
src/lib.rs:4 _ => {}
^
src/lib.rs:4:9: 4:10 help: pass `--explain E0001` to see a detailed explanation
error: aborting due to previous error
Could not compile `error-explain`.
To learn more, run the command again with --verbose.
The error message looks a lot like cargo build --explain ...
should work, but it's really rustc telling the user to pass that flag to rustc, and cargo is just dumping rustc's output straight out.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Error and warning messages generated by Cargo itself.Area: Error and warning messages generated by Cargo itself.A-toolingArea: interaction with other toolsArea: interaction with other tools