rustc recommends a compiler builtin to solve a trait bound issue. #71532
Labels
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
While working on an emulator project, I ran into the following compiler error:
Minimal example:
which will give the following error and recommended fix:
Meta
rustc --version --verbose
:Also occurs on:
rustc 1.43.0 (4fb7144ed 2020-04-20)
rustc 1.44.0-nightly (b2e36e6c2 2020-04-22)
The text was updated successfully, but these errors were encountered: