mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-28 03:24:11 +00:00
Work around `rust-analyzer` false-positive type errors rust-analyzer incorrectly reports two type errors in `debug.rs`: > expected &dyn Display, found &i32 > expected &dyn Display, found &i32 This is due to a known bug in r-a: (https://github.com/rust-lang/rust-analyzer/issues/11847). In these particular cases, changing `&0` to `&0i32` seems to be enough to avoid the bug.