Diagnostics: mismatched types show wrong because of this statement
#57664
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
P-high
High priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
Uh oh!
There was an error while loading. Please reload this page.
The following code
(Playground)
Will generate the following error under nightly (
rustc 1.33.0-nightly
):Which is incorrect (and confusing!).
stable
produce the correct message:and removing either the
?
or theunsafe { }
will makenightly
generate a correct message as well.Meta
rustc --version --verbose
(Windows):and
rustc --version --verbose
(macOS):The text was updated successfully, but these errors were encountered: