error[E0275]: overflow evaluating the requirement… when importing bevy_ecs #123925
Labels
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
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.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
The following code correctly results in a compile error:
Correct compile error
I tried to add an unused
use
statement:I expected to see this happen: The same compile error message.
Instead, this happened:
The exact type varies (e.g.
Mut
,Res
,Local
).This happens for any
use x;
wherex
is or depends onbevy_ecs
version "^0.9".There is also a bevy_ecs-specifc workaround in the compiler, but its not related as it is part of well-formedness checking and the error persists when renaming
ParamSet
.What makes this bug annoying is that the error message doesn't give any indication as to where the code that causes the error (line 2 into above example) is.
Meta
rustc --version --verbose
:Also tried with
1.77.2
.The text was updated successfully, but these errors were encountered: