You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0446]: private type `FooQueryFetch<'w>` in public interface
--> server\entity\src\lib.rs:17:10
|
17 | #[derive(WorldQuery)]
| ^^^^^^^^^^
| |
| can't leak private type
| `FooQueryFetch<'w>` declared as private
|
= note: this error originates in the derive macro `WorldQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
and
error[E0446]: private type `FooQueryState<'w>` in public interface
--> server\entity\src\lib.rs:17:10
|
17 | #[derive(WorldQuery)]
| ^^^^^^^^^^
| |
| can't leak private type
| `FooQueryState<'w>` declared as private
|
= note: this error originates in the derive macro `WorldQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
Additional Information
Removing the pub from Foo and FooQuery results in no compile errors.
The text was updated successfully, but these errors were encountered:
## Objective
Fixes#4122.
## Solution
Inherit the visibility of the struct being derived for the `xxItem`, `xxFetch`, `xxState` structs.
Co-authored-by: Carter Anderson <mcanders1@gmail.com>
aevyrie
pushed a commit
to aevyrie/bevy
that referenced
this issue
Jun 7, 2022
## Objective
Fixesbevyengine#4122.
## Solution
Inherit the visibility of the struct being derived for the `xxItem`, `xxFetch`, `xxState` structs.
Co-authored-by: Carter Anderson <mcanders1@gmail.com>
Bevy version
(main) 159fe52
Operating system & version
Windows 10
What you did
Created a
WorldQuery
derive with apub
struct:What you expected to happen
Compile without error.
What actually happened
and
Additional Information
Removing the
pub
fromFoo
andFooQuery
results in no compile errors.The text was updated successfully, but these errors were encountered: