Here's the compiler diagnostic
error[E0277]: the trait bound `(MaterialMesh2dBundle<bevy::prelude::ColorMaterial>, AABBCollisionBody): Bundle` is not satisfied
--> src\main.rs:64:20
|
64 | commands.spawn((
| ______________-----_^
| | |
| | required by a bound introduced by this call
65 | | MaterialMesh2dBundle {
66 | | mesh: meshes
67 | | .add(shape::Quad::new(Vec2::new(50., 50.)).into())
... |
77 | | }
78 | | ));
| |_____^ the trait `Bundle` is not implemented for `(MaterialMesh2dBundle<bevy::prelude::ColorMaterial>, AABBCollisionBody)`
|
= help: the following other types implement trait `Bundle`:
()
(B0,)
(B0, B1)
(B0, B1, B2)
(B0, B1, B2, B3)
(B0, B1, B2, B3, B4)
(B0, B1, B2, B3, B4, B5)
(B0, B1, B2, B3, B4, B5, B6)
and 8 others
note: required by a bound in `bevy::prelude::Commands::<'w, 's>::spawn`
--> C:\Users\[myuser]\.cargo\registry\src\index.crates.io-6f17d22bba15001f\bevy_ecs-0.11.3\src\system\commands\mod.rs:267:25
|
267 | pub fn spawn<'a, T: Bundle>(&'a mut self, bundle: T) -> EntityCommands<'w, 's, 'a> {
| ^^^^^^ required by this bound in `Commands::<'w, 's>::spawn`