Closed
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.