Should I fill a bug report? #14799
-
use bevy::prelude::*;
fn test<T>(_items: &[T])
where
for<'a> &'a T: IntoIterator<Item = &'a isize>,
{
}
pub fn system() {
let items = vec![[1,2]];
test(&items);
} Causes and error:
at line 11: test(&items); Removing the I found some related bug reports for the rust compiler but all are "resolved" (some last month) but I do get this error even if using the nightly toolchain. Is the code OK? Should I fill a bug report? If yes, for bevy or for the rust compiler? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Yeah a bug report would be nice. It might also help if you could narrow it down to a certain module or trait in the prelude that's causing this. |
Beta Was this translation helpful? Give feedback.
-
I tried changing the "use" statement: |
Beta Was this translation helpful? Give feedback.
-
Is there at least some way to detect which line of code is throwing this error ? I got this in a gigantic project and i have no way of figuring out the line of code responsible and im in a very very bad situation now |
Beta Was this translation helpful? Give feedback.
The problem reproduces with the following code.
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=cac861a1305e1f5520ea1fadb3fd013c
This code compiles fine with
-Znext-solver
, so it may be a limitation of the current trait solver.https://ru…