about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-07-20 07:13:46 +0200
committerGitHub <noreply@github.com>2024-07-20 07:13:46 +0200
commit89798e9064282764247e7e9af4f7c153e865a19b (patch)
tree7cdfaeef57cba953c541f251121095158d07d460 /compiler/rustc_parse/src/errors.rs
parent40cfc8837a220c514124878eb73fdb3e808d1e79 (diff)
parent3ff758877fd994ebeb7a3a0a65fae4de3f66b8d7 (diff)
downloadrust-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