-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Description
rust-analyzer version: rust-analyzer 1.90.0-nightly (9748d87 2025-07-21)
rustc version: rustc 1.90.0-nightly (9748d87dc 2025-07-21)
editor or extension: VIM-9.1
code snippet to reproduce:
enum State {
Stop(()),
}
impl State {
fn get_or_init(&mut self) -> &mut () {
match self {
State::Stop(_) => {
let this = self;
let Self::Stop(f) = this else { unreachable!() };
*self = ;
},
}
}
}
Why does dereference assign suggest &mut
?