-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Incorrect error code when using a trait object without dyn
#90768
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
C-bug
Category: This is a bug.
Comments
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Nov 11, 2021
…e, r=michaelwoerister Fix trait object error code closes rust-lang#90768 I `grep`:d and changed the occurrences that seemed relevant. Please let me know what you think and if anything is missing!
the8472
added a commit
to the8472/rust
that referenced
this issue
Nov 11, 2021
…e, r=michaelwoerister Fix trait object error code closes rust-lang#90768 I `grep`:d and changed the occurrences that seemed relevant. Please let me know what you think and if anything is missing!
hellow554
added a commit
to hellow554/rust
that referenced
this issue
Nov 12, 2021
…e, r=michaelwoerister Fix trait object error code closes rust-lang#90768 I `grep`:d and changed the occurrences that seemed relevant. Please let me know what you think and if anything is missing!
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Nov 13, 2021
…e, r=michaelwoerister Fix trait object error code closes rust-lang#90768 I `grep`:d and changed the occurrences that seemed relevant. Please let me know what you think and if anything is missing!
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Nov 13, 2021
…e, r=michaelwoerister Fix trait object error code closes rust-lang#90768 I `grep`:d and changed the occurrences that seemed relevant. Please let me know what you think and if anything is missing!
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Hi all, thank you for the great work on rust!
I believe the compiler might be suggesting an incorrect error code when omitting
dyn
with trait objects. An example is the following snippet (playground):The error code E0783 in the error message seems to point to an error regarding the range pattern. I believe the correct error may instead be E0782.
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: