-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Odd "mismatched types" error message #9249
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Comments
Closing as working as intended The right hand side has type |
The error message could use some improvement. |
The given test case now compiles. Can this be closed, or is there some other case where coercion doesn’t occur? |
Flagging as needstest |
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Jul 28, 2022
…lip1995 Use `action/checkout@v3` in the book As this type of document is often copied/pasted, using a newer version of `actions/checkout` would be better. changelog: none Signed-off-by: Yuki Okushi <jtitor@2k36.org>
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
The error message seems to confuse lifetime with size:
Also note the extra space after
&'static
.The text was updated successfully, but these errors were encountered: