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
I typo’d handle (local variable) with Handle (type with private fields I have no access to). Would have expected rustc to not emit such a note and maybe look for typos instead.
error[E0423]: expected value, found struct `Handle`
|
73 | handle: Handle,
| ^^^^^^ did you mean `Handle { /* fields */ }`?
The text was updated successfully, but these errors were encountered:
Checker:: Execute levenshtein before other context checking
As explain [here]() i think it's better to check for a miss typing before checking context dependent help.
```rust
struct Handle {}
struct Something {
handle: Handle
}
fn main() {
let handle: Handle = Handle {};
let s: Something = Something {
// Checker detect an error and propose a solution with `Handle { /* ... */ }`
// but it's a miss typing of `handle`
handle: Handle
};
}
```
Ping: @nagisa for #39226
Signed-off-by: Freyskeyd <simon.paitrault@gmail.com>
I typo’d
handle
(local variable) withHandle
(type with private fields I have no access to). Would have expected rustc to not emit such a note and maybe look for typos instead.The text was updated successfully, but these errors were encountered: