Enhance compiler errors with return types #45871
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
WG-diagnostics
Working group: Diagnostics
I want to return an object containing a specific type
I tried this code:
I expected to see this happen:
This could be a better suggestion
Instead, this happened:
Meta
rustc --version --verbose
:Backtrace:
rustc 1.21.0 (3b72af9 2017-10-09)
binary: rustc
commit-hash: 3b72af9
commit-date: 2017-10-09
host: x86_64-apple-darwin
release: 1.21.0
LLVM version: 4.0
The text was updated successfully, but these errors were encountered: