bevy/crates/bevy_reflect/compile_fail/tests/reflect_remote
Nicholas Nethercote d80078cf2d
bevy_reflect: Introduce reflect_clone_and_take. (#19944)
# Objective

There is a pattern that appears in multiple places, involving
`reflect_clone`, followed by `take`, followed by `map_err` that produces
a `FailedDowncast` in a particular form.

## Solution

Introduces `reflect_clone_and_take`, which factors out the repeated
code.

## Testing

`cargo run -p ci`

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
2025-07-07 19:57:29 +00:00
..
incorrect_wrapper_fail.rs
incorrect_wrapper_pass.rs
invalid_definition_fail.rs
invalid_definition_pass.rs
macro_order_fail.rs
macro_order_pass.rs
nested_fail.rs
nested_pass.rs
type_mismatch_fail.rs
type_mismatch_pass.rs