{"record":{"id":"50c8d4b1e41dc13c","repo":"bevyengine/bevy","slug":"field-cannot-be-made-cloneable-for-partialre","errorCode":null,"errorMessage":"field `{}` cannot be made cloneable for `PartialReflect::reflect_clone` (are you missing a `#[reflect(clone)]` attribute?)","messagePattern":"field `(.+?)` cannot be made cloneable for `PartialReflect::reflect_clone` \\(are you missing a `#\\[reflect\\(clone\\)\\]` attribute\\?\\)","errorType":"exception","errorClass":"ReflectCloneError","httpStatus":null,"severity":"error","filePath":"crates/bevy_reflect/src/error.rs","lineNumber":37,"sourceCode":"    ///\n    /// This type should be returned when a type is intentionally opting out of reflection cloning.\n    ///\n    /// [`PartialReflect::reflect_clone`]: crate::PartialReflect::reflect_clone\n    #[error(\"`{type_path}` cannot be made cloneable for `PartialReflect::reflect_clone`\")]\n    NotCloneable {\n        /// The fully qualified path of the type that cannot be cloned via [`PartialReflect::reflect_clone`](crate::PartialReflect::reflect_clone).\n        type_path: Cow<'static, str>,\n    },\n    /// The field cannot be cloned via [`PartialReflect::reflect_clone`].\n    ///\n    /// When [deriving `Reflect`], this usually means that a field marked with `#[reflect(ignore)]`\n    /// is missing a `#[reflect(clone)]` attribute.\n    ///\n    /// This may be intentional if the field is not meant/able to be cloned.\n    ///\n    /// [`PartialReflect::reflect_clone`]: crate::PartialReflect::reflect_clone\n    /// [deriving `Reflect`]: derive@crate::Reflect\n    #[error(\n        \"field `{}` cannot be made cloneable for `PartialReflect::reflect_clone` (are you missing a `#[reflect(clone)]` attribute?)\",\n        full_path(.field, .variant.as_deref(), .container_type_path)\n    )]\n    FieldNotCloneable {\n        /// Struct field or enum variant field which cannot be cloned.\n        field: FieldId,\n        /// Variant this field is part of if the container is an enum, otherwise [`None`].\n        variant: Option<Cow<'static, str>>,\n        /// Fully qualified path of the type containing this field.\n        container_type_path: Cow<'static, str>,\n    },\n    /// Could not downcast to the expected type.\n    ///\n    /// Realistically this should only occur when a type has incorrectly implemented [`Reflect`].\n    ///\n    /// [`Reflect`]: crate::Reflect\n    #[error(\"expected downcast to `{expected}`, but received `{received}`\")]\n    FailedDowncast {","sourceCodeStart":19,"sourceCodeEnd":55,"githubUrl":"https://github.com/bevyengine/bevy/blob/396ca727080776bd313bb892423b7d94e03b81b4/crates/bevy_reflect/src/error.rs#L19-L55","documentation":"ReflectCloneError::FieldNotCloneable: during a derived reflect_clone, a specific struct field or enum variant field could not be cloned — usually because it is missing the #[reflect(clone)] attribute required for cloneable reflection.","triggerScenarios":"Thrown at crates/bevy_reflect/src/error.rs:37 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add #[reflect(clone)] to the field named in the error","Make the field's type Clone","Use FromReflect-based cloning if full cloneability is not needed"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"396ca727080776bd313bb892423b7d94e03b81b4","analyzedAt":"2026-08-20T16:12:39.808Z","contentChangedAt":"2026-08-20T16:12:39.808Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}