Open
Description
For example, in this code, it's hard to tell which part of the inputs to the macro has the wrong type. This is obviously a reduced example, but I've seen the same problem in real code.
I suspect this might be a duplicate issue, but couldn't find anything...
fn main() {
assert_eq!(10u64, 10usize);
}
provides:
rustc 1.16.0-nightly (4ecc85beb 2016-12-28)
error[E0308]: mismatched types
--> <anon>:2:5
|
2 | assert_eq!(10u64, 10usize);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected u64, found usize
|
= note: this error originates in a macro outside of the current crate
error: aborting due to previous error