1 2 3 4 5 6 7 8 9 10 11 12
// Never returns, so it runs out of fuel. fn spin(mut q: Query<&mut Health>) { loop { for mut hp in &mut q { hp.0 += 1.0; } } } pub fn plugin(app: &mut App) { app.add_systems(Update, spin); }