summary refs log tree commit diff
path: root/src/test/ui/suggestions/as-ref-2.fixed
AgeCommit message (Collapse)AuthorLines
2021-04-19Suggest `.as_ref()` on borrow error involving `Option`/`Result`Esteban Küber-0/+13
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.