#[derive(Bundle)] compilation issue in Bevy 0.16
#19460
-
|
From my testing, the following code doesn't compile anymore: use bevy::prelude::*;
#[derive(Bundle)]
struct Foo<T: Bundle>(T);I understand this requires use bevy::prelude::*;
use bevy::ecs::bundle::BundleFromComponents;
#[derive(Bundle)]
struct Foo<T: Bundle + BundleFromComponents>(T);I was curious if this API design is intentional, or if we could find a way to improve it. Is there a reason |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Yeah, this wasn't an intended regression. It should be documented at the very least, but I think that we should be clearer about our semantics around the Bundle trait more generally and be careful about where we use it versus distinct traits (see #3227). |
Beta Was this translation helpful? Give feedback.
Yeah, this wasn't an intended regression. It should be documented at the very least, but I think that we should be clearer about our semantics around the Bundle trait more generally and be careful about where we use it versus distinct traits (see #3227).