Open
Description
I tried this code:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=609d454db4ecdbe3026330593c586d79
// delete this import to compile success
use serde_json;
fn main() {
let a = 0usize;
let b = 0i32;
assert!(a == b as _);
}
I expected to see this happen: can infer type
Instead, this happened: cannot infer type, but delete use serde_json;
will compile success
In fact, if the compilation succeeds at this point, it may be broken later when used with other dependencies. Spxg/sqlite-wasm-rs#58