mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 09:13:07 +03:00
6df26f897c
Suggest `.as_ref()` on borrow error involving `Option`/`Result` When encountering a E0382 borrow error involving an `Option` or `Result` provide a suggestion to use `.as_ref()` on the prior move location to avoid the move. Fix #84165.