diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-07-20 07:13:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-20 07:13:46 +0200 |
| commit | 89798e9064282764247e7e9af4f7c153e865a19b (patch) | |
| tree | 7cdfaeef57cba953c541f251121095158d07d460 /compiler/rustc_parse/src/errors.rs | |
| parent | 40cfc8837a220c514124878eb73fdb3e808d1e79 (diff) | |
| parent | 3ff758877fd994ebeb7a3a0a65fae4de3f66b8d7 (diff) | |
| download | rust-89798e9064282764247e7e9af4f7c153e865a19b.tar.gz rust-89798e9064282764247e7e9af4f7c153e865a19b.zip | |
Rollup merge of #127987 - estebank:impl-trait-sugg, r=cjgillot
More accurate suggestion for `-> Box<dyn Trait>` or `-> impl Trait` When encountering `-> Trait`, suggest `-> Box<dyn Trait>` (instead of `-> Box<Trait>`. If there's a single returned type within the `fn`, suggest `-> impl Trait`.
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
