Closed
Description
In some cases, rust compiler doesn't provide full error information:
Here, all is fine: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=44b2e8f8c231c6475a366c84f25f4ecd
Compiling playground v0.0.1 (/playground)
error[E0614]: type `u64` cannot be dereferenced
--> src/main.rs:6:5
|
6 | *value.field = 10;
| ^^^^^^^^^^^^
For more information about this error, try `rustc --explain E0614`.
error: could not compile `playground` due to previous error
Example on FreeImage.host
This issue appears on Windows terminal, but also I think that this is platform independed.
Consider to make error message color red as in playground
Apologize section:
Probably that issue is not so useful (because it's just a color), but I want to help to rust community
As for me, it was very unexpected to get this issue. I was thinking that something wrong in compiler, but thankfully it's not