Unhelpful error message for malformed Bevy Query type parameters #89680
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-type-system
Area: Type system
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
E-needs-mcve
Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Following the reproduction here, this code:
Produces the following error:
In this case, the user should be grouping
&A, &B
into the first type argument ofQuery
using ourall_tuples
-impl'ed macro.The compiler however sees that
&B
is used in the place of the query filter, and complains that it's an invalid query due to missing internal traits.Obviously, implementing
FilterFetch
orReadFetch
forB
is not the approach the user should be taking to solve this problem!The text was updated successfully, but these errors were encountered: