diff --git a/crates/bevy_ecs/src/schedule/mod.rs b/crates/bevy_ecs/src/schedule/mod.rs index 5ad27d2b07..e44fc79e05 100644 --- a/crates/bevy_ecs/src/schedule/mod.rs +++ b/crates/bevy_ecs/src/schedule/mod.rs @@ -175,13 +175,11 @@ mod tests { #[test] fn add_systems_correct_order() { - #[derive(Resource)] - struct X(Vec); - let mut world = World::new(); + let mut schedule = Schedule::new(); + world.init_resource::(); - let mut schedule = Schedule::new(); schedule.add_systems( ( make_function_system(0),