You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code compiles without issues in the latest stable Rust, but rust-analyzer makes some incorrect type inference assumptions which lead to error E0308.
The following code compiles without issues in the latest stable Rust, but rust-analyzer makes some incorrect type inference assumptions which lead to error E0308.
Following the suggestion to add
&
beforetag
inlet x = map.get(tag);
will trigger theneedless_borrow
Clippy warning.rust-analyzer version: both 0.4.1857-standalone and 0.3.1850-standalone reproduce this
rustc version: rustc 1.76.0 (07dca489a 2024-02-04)
relevant settings: 🤷
The text was updated successfully, but these errors were encountered: