mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 04:46:28 +00:00
Suggest `{Option,Result}::{copied,clone}()` to satisfy type mismatch
Fixes #100699, but in the opposite direction (instead of suggesting to fix the signature, it fixes the body)
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.