mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-02 17:44:28 +00:00
fix(diagnostic): wrap parens for ref impl trait param Fixes https://github.com/rust-lang/rust/issues/99597 When parameters are an `impl_trait` which it needed to add trait, and it is a reference, add parentheses to the type of the parameter in the suggestion