You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0425]: unresolved name `SomeTrait`
--> src/test/compile-fail/E0033.rs:16:33
|
16 | let trait_obj: &SomeTrait = SomeTrait; //~ ERROR E0425
| ^^^^^^^^^
|
= help: trait `SomeTrait` cannot be used as an expression
To:
error[E0425]: unresolved name `SomeTrait`
--> src/test/compile-fail/E0033.rs:16:33
|
16 | let trait_obj: &SomeTrait = SomeTrait; //~ ERROR E0425
| ^^^^^^^^^ unresolved name
|
= help: trait `SomeTrait` cannot be used as an expression
Note, this assumes we can know this information when we're making the label.
One more note. I've updated the default label. Basically, we'll have a default label if there is no "did you mean..." part, otherwise if there is a "did you mean..." we'll use that as the label.
Activity
sophiajt commentedon Aug 11, 2016
A note to who is doing this one, it seems E0425 is used for a few styles of errors. For example:
The "Did you mean
variable?" part should be a label, if it exists. Which turns the above into:sophiajt commentedon Aug 11, 2016
One more note. I've updated the default label. Basically, we'll have a default label if there is no "did you mean..." part, otherwise if there is a "did you mean..." we'll use that as the label.
sophiajt commentedon Aug 11, 2016
For @prabodhtiwari (who I think volunteered for this one). I made a couple changes. If you have any questions, just tag me and ask.
bstrie commentedon Sep 25, 2016
Freeing this one up as part of the final push for #35233.
Auto merge of #36761 - jonathandturner:E0425_E0446_E0449, r=nrc