Do not suggest try_into for base types inside of macro expansions
This commit is contained in:
parent
f7af19c279
commit
fbf1efb949
3 changed files with 18 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
assert_eq!(10u64, 10usize); //~ ERROR mismatched types
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
error[E0308]: mismatched types
|
||||
--> $DIR/dont-suggest-try_into-in-macros.rs:2:5
|
||||
|
|
||||
LL | assert_eq!(10u64, 10usize);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected u64, found usize
|
||||
|
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0308`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue