bevyengine/bevy · error · ReflectCloneError
`{type_path}` cannot be made cloneable for `PartialReflect::
Error message
`{type_path}` cannot be made cloneable for `PartialReflect::reflect_clone` What it means
ReflectCloneError::NotCloneable — the named type cannot be made cloneable for reflect_clone at all (its underlying Rust type does not implement Clone or a clone function cannot be provided). Rework the type or avoid cloning it via reflection.
Source
Thrown at crates/bevy_reflect/src/error.rs:23
/// An error that occurs when cloning a type via [`PartialReflect::reflect_clone`].
///
/// [`PartialReflect::reflect_clone`]: crate::PartialReflect::reflect_clone
#[derive(Clone, Debug, Error, PartialEq, Eq)]
pub enum ReflectCloneError {
/// The type does not have a custom implementation for [`PartialReflect::reflect_clone`].
///
/// [`PartialReflect::reflect_clone`]: crate::PartialReflect::reflect_clone
#[error("`PartialReflect::reflect_clone` not implemented for `{type_path}`")]
NotImplemented {
/// The fully qualified path of the type that [`PartialReflect::reflect_clone`](crate::PartialReflect::reflect_clone) is not implemented for.
type_path: Cow<'static, str>,
},
/// The type cannot be cloned via [`PartialReflect::reflect_clone`].
///
/// This type should be returned when a type is intentionally opting out of reflection cloning.
///
/// [`PartialReflect::reflect_clone`]: crate::PartialReflect::reflect_clone
#[error("`{type_path}` cannot be made cloneable for `PartialReflect::reflect_clone`")]
NotCloneable {
/// The fully qualified path of the type that cannot be cloned via [`PartialReflect::reflect_clone`](crate::PartialReflect::reflect_clone).
type_path: Cow<'static, str>,
},
/// The field cannot be cloned via [`PartialReflect::reflect_clone`].
///
/// When [deriving `Reflect`], this usually means that a field marked with `#[reflect(ignore)]`
/// is missing a `#[reflect(clone)]` attribute.
///
/// This may be intentional if the field is not meant/able to be cloned.
///
/// [`PartialReflect::reflect_clone`]: crate::PartialReflect::reflect_clone
/// [deriving `Reflect`]: derive@crate::Reflect
#[error(
"field `{}` cannot be made cloneable for `PartialReflect::reflect_clone` (are you missing a `#[reflect(clone)]` attribute?)",
full_path(.field, .variant.as_deref(), .container_type_path)
)]
FieldNotCloneable {View on GitHub (pinned to 396ca72708)
Solutions
- Make the underlying fields Clone
- Add #[reflect(clone)] where required on fields
- Avoid reflect_clone for this type and clone through the concrete type
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at crates/bevy_reflect/src/error.rs:23 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of bevyengine/bevy@396ca72708 (2026-08-20).
Data as JSON: /api/errors/4336dfb8f5fa0961.
Report an issue: GitHub.