1
- error[E0277]: the trait bound `WriteFetch<'_, Foo>: ReadOnlyFetch ` is not satisfied
2
- --> tests/ui/world_query_derive.rs:7:10
1
+ error[E0277]: the trait bound `&'static mut Foo: ReadOnlyWorldQuery ` is not satisfied
2
+ --> tests/ui/world_query_derive.rs:9:8
3
3
|
4
- 7 | #[derive(WorldQuery)]
5
- | ^^^^^^^^^^ the trait `ReadOnlyFetch ` is not implemented for `WriteFetch<'_, Foo> `
4
+ 9 | a: &'static mut Foo,
5
+ | ^^^^^^^^^^^^^^^^ the trait `ReadOnlyWorldQuery ` is not implemented for `&'static mut Foo`
6
6
|
7
7
note: required by a bound in `_::assert_readonly`
8
8
--> tests/ui/world_query_derive.rs:7:10
@@ -11,11 +11,11 @@ note: required by a bound in `_::assert_readonly`
11
11
| ^^^^^^^^^^ required by this bound in `_::assert_readonly`
12
12
= note: this error originates in the derive macro `WorldQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
13
13
14
- error[E0277]: the trait bound `MutableMarkedFetch<'_>: ReadOnlyFetch ` is not satisfied
15
- --> tests/ui/world_query_derive.rs:18:10
14
+ error[E0277]: the trait bound `MutableMarked: ReadOnlyWorldQuery ` is not satisfied
15
+ --> tests/ui/world_query_derive.rs:20:8
16
16
|
17
- 18 | #[derive(WorldQuery)]
18
- | ^^^^^^^^^^ the trait `ReadOnlyFetch ` is not implemented for `MutableMarkedFetch<'_> `
17
+ 20 | a: MutableMarked,
18
+ | ^^^^^^^^^^^^^ the trait `ReadOnlyWorldQuery ` is not implemented for `MutableMarked `
19
19
|
20
20
note: required by a bound in `_::assert_readonly`
21
21
--> tests/ui/world_query_derive.rs:18:10
0 commit comments