Created
August 11, 2022 08:23
-
-
Save kabergstrom/f9a84610dfdc7a57c9b61e3139632095 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error[E0277]: the trait bound `element::ElementID: FromReflect` is not satisfied | |
--> element.rs:1416:17 | |
| | |
1416 | #[derive(Clone, Reflect, Serialize, Deserialize)] | |
| ^^^^^^^ the trait `FromReflect` is not implemented for `element::ElementID` | |
| | |
= help: the following other types implement trait `FromReflect`: | |
() | |
(A, B) | |
(A, B, C) | |
(A, B, C, D) | |
(A, B, C, D, E) | |
(A, B, C, D, E, F) | |
(A, B, C, D, E, F, G) | |
(A, B, C, D, E, F, G, H) | |
and 59 others | |
= note: required because of the requirements on the impl of `Reflect` for `Vec<element::ElementID>` | |
note: required by a bound in `NamedField::new` | |
--> C:\Users\Karl\.cargo\git\checkouts\bevy-f7ffde730c324c74\0149c41\crates\bevy_reflect\src\fields.rs:15:19 | |
| | |
15 | pub fn new<T: Reflect, TName: Into<Cow<'static, str>>>(name: TName) -> Self { | |
| ^^^^^^^ required by this bound in `NamedField::new` | |
= note: this error originates in the derive macro `Reflect` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0277]: the trait bound `element::ElementID: FromReflect` is not satisfied | |
--> element.rs:1416:17 | |
| | |
1416 | #[derive(Clone, Reflect, Serialize, Deserialize)] | |
| ^^^^^^^ the trait `FromReflect` is not implemented for `element::ElementID` | |
| | |
= help: the following other types implement trait `FromReflect`: | |
() | |
(A, B) | |
(A, B, C) | |
(A, B, C, D) | |
(A, B, C, D, E) | |
(A, B, C, D, E, F) | |
(A, B, C, D, E, F, G) | |
(A, B, C, D, E, F, G, H) | |
and 59 others | |
= note: required because of the requirements on the impl of `Reflect` for `Vec<element::ElementID>` | |
= note: required for the cast from `Vec<element::ElementID>` to the object type `dyn Reflect` | |
= note: this error originates in the derive macro `Reflect` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0277]: the trait bound `element::ElementID: FromReflect` is not satisfied | |
--> element.rs:1416:17 | |
| | |
1416 | #[derive(Clone, Reflect, Serialize, Deserialize)] | |
| ^^^^^^^ the trait `FromReflect` is not implemented for `element::ElementID` | |
| | |
= help: the following other types implement trait `FromReflect`: | |
() | |
(A, B) | |
(A, B, C) | |
(A, B, C, D) | |
(A, B, C, D, E) | |
(A, B, C, D, E, F) | |
(A, B, C, D, E, F, G) | |
(A, B, C, D, E, F, G, H) | |
and 59 others | |
= note: required because of the requirements on the impl of `Reflect` for `Vec<element::ElementID>` | |
= note: required for the cast from `Vec<element::ElementID>` to the object type `(dyn Reflect + 'static)` | |
= note: this error originates in the derive macro `Reflect` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0599]: the method `clone_value` exists for struct `Vec<element::ElementID>`, but its trait bounds were not satisfied | |
--> element.rs:1416:17 | |
| | |
41 | pub struct ElementID(pub u64); | |
| -------------------- doesn't satisfy `element::ElementID: FromReflect` | |
... | |
1416 | #[derive(Clone, Reflect, Serialize, Deserialize)] | |
| ^^^^^^^ method cannot be called on `Vec<element::ElementID>` due to unsatisfied trait bounds | |
| | |
::: C:\Users\Karl\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\alloc\src\vec\mod.rs:400:1 | |
| | |
400 | pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> { | |
| ------------------------------------------------------------------------------------------------ doesn't satisfy `Vec<element::ElementID>: Reflect` | |
| | |
= note: the following trait bounds were not satisfied: | |
`element::ElementID: FromReflect` | |
which is required by `Vec<element::ElementID>: Reflect` | |
note: the following trait must be implemented | |
--> C:\Users\Karl\.cargo\git\checkouts\bevy-f7ffde730c324c74\0149c41\crates\bevy_reflect\src\reflect.rs:195:1 | |
| | |
195 | pub trait FromReflect: Reflect + Sized { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
= note: this error originates in the derive macro `Reflect` (in Nightly builds, run with -Z macro-backtrace for more info) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment