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
Today, this works and provides the expected line numbers.
error[E0282]: type annotations needed
--> test.rs:2:13
|
2 | let v = vec![];
| - ^^^^^^ cannot infer type for `T`
| |
| consider giving `v` a type
|
= note: this error originates in a macro outside of the current crate
error: aborting due to previous error(s)
Agreed we're (considerably) better than where we were.
I do wonder if we could improve it a bit more, too. A new user might look at this and go "what T?" Not sure if it warrants its a separate issue, just throwing the idea out there.
Try compiling this:
The error message never mentions a line number outside of the macro.
The text was updated successfully, but these errors were encountered: