Spurious error reported after name not found in scope #58712
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I have the following code:
I forgot to use
DeviceId
, so it wasn't in scope. rustc gave me the following errors:Maybe this is the intended behavior, but it seems odd to report an invalid method receiver type error simply because the type's name was unknown.
The text was updated successfully, but these errors were encountered: