E0308 suggests to use to_string()
in wrong position if if
and else
have incompatible types
#83943
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=78d185647e3370e312d4cd675d94230e
The current output is:
Ideally the output should look like:
This might be related to #83320.
The text was updated successfully, but these errors were encountered: