Using Foo::<Bar>
in some contexts where a type is expected gives wrong error message
#36116
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
The following example gives a wrong error message:
The
help: use
::<...>instead of
<...>`` bit is wrong and suggests the opposite of the fix.Note that none of the following give that error message:
gives
and
gives
which are correct but could be more explicit about the problem.
The text was updated successfully, but these errors were encountered: