@@ -4,6 +4,7 @@ error[E0277]: the trait bound `MyResource: Resource` is not satisfied
4
4
52 | my_res: Res<MyResource>,
5
5
| ^^^^^^^^^^^^^^^ the trait `Resource` is not implemented for `MyResource`
6
6
|
7
+ = note: consider adding `#[derive(bevy::Resource)]` to `MyResource`
7
8
= help: the following other types implement trait `Resource`:
8
9
AmbientLight
9
10
AppTypeRegistry
@@ -15,17 +16,18 @@ error[E0277]: the trait bound `MyResource: Resource` is not satisfied
15
16
ClearColor
16
17
and 80 others
17
18
note: required by a bound in `bevy::prelude::Res`
18
- --> /home/weiznich/.cargo/git/checkouts/bevy-f7ffde730c324c74/3d194a2 /crates/bevy_ecs/src/system/system_param.rs:268 :23
19
+ --> /home/weiznich/.cargo/git/checkouts/bevy-daf8fe04ec93bc1c/7adcdd2 /crates/bevy_ecs/src/system/system_param.rs:272 :23
19
20
|
20
- 268 | pub struct Res<'w, T: Resource> {
21
+ 272 | pub struct Res<'w, T: Resource> {
21
22
| ^^^^^^^^ required by this bound in `bevy::prelude::Res`
22
23
23
- error[E0277]: the trait bound `A: WorldQuery` is not satisfied
24
+ error[E0277]: Using a ` WorldQuery` object as parameter to `Query` requires the usage of a reference
24
25
--> tests/bevy/system_mismatch.rs:67:45
25
26
|
26
27
67 | fn missing_reference_in_query_system(query: Query<A, With<B>>) {}
27
- | ^^^^^^^^^^^^^^^^^ the trait `WorldQuery` is not implemented for `A`
28
+ | ^^^^^^^^^^^^^^^^^ consider using `& A` here
28
29
|
30
+ = help: the trait `WorldQuery` is not implemented for `A`
29
31
= help: the following other types implement trait `WorldQuery`:
30
32
&'__w mut T
31
33
&T
@@ -37,7 +39,7 @@ error[E0277]: the trait bound `A: WorldQuery` is not satisfied
37
39
(F0, F1, F2, F3, F4, F5)
38
40
and 50 others
39
41
note: required by a bound in `bevy::prelude::Query`
40
- --> /home/weiznich/.cargo/git/checkouts/bevy-f7ffde730c324c74/3d194a2 /crates/bevy_ecs/src/system/query.rs:252:37
42
+ --> /home/weiznich/.cargo/git/checkouts/bevy-daf8fe04ec93bc1c/7adcdd2 /crates/bevy_ecs/src/system/query.rs:252:37
41
43
|
42
44
252 | pub struct Query<'world, 'state, Q: WorldQuery, F: WorldQuery = ()> {
43
45
| ^^^^^^^^^^ required by this bound in `bevy::prelude::Query`
0 commit comments