diff --git a/crates/bevy_ecs/macros/src/lib.rs b/crates/bevy_ecs/macros/src/lib.rs index 8f5a4b9bb6..c0dfb21199 100644 --- a/crates/bevy_ecs/macros/src/lib.rs +++ b/crates/bevy_ecs/macros/src/lib.rs @@ -380,7 +380,7 @@ pub fn derive_system_param(input: TokenStream) -> TokenStream { marker: std::marker::PhantomData(#punctuated_generic_idents)> } - unsafe impl #path::system::SystemParamState for #fetch_struct_name { + unsafe impl #path::system::SystemParamState for #fetch_struct_name #where_clause { fn init(world: &mut #path::world::World, system_meta: &mut #path::system::SystemMeta) -> Self { Self { state: TSystemParamState::init(world, system_meta),