Is it possible to make cargo use rustc --explain E0495 option?

Viewed 68

My code, compile with cargo build, gives:

error: aborting due to previous error; 16 warnings emitted

For more information about this error, try rustc --explain E0495.

I want to know more about this error but I don't know how to compile alone with rustc. Can I force Cargo to use the --explain E0495 option?

If not, can I make Cargo output the entire rustc calls it's using so I can simply copy and add --explain E0495?

0 Answers
Related