Suggest calling size_of
when it is missing parens in a comparison
#101054
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:
The current output is:
Ideally the output should look like:
Probably worth not making this diagnostic suggestion specific to
size_of
but to any type error where there is a comparison of a function and the return type of that function.The text was updated successfully, but these errors were encountered: