We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39f9b00 commit ef97631Copy full SHA for ef97631
crates/bevy_reflect/src/lib.rs
@@ -2749,6 +2749,26 @@ bevy_reflect::tests::Test {
2749
);
2750
}
2751
2752
+ #[test]
2753
+ fn should_reflect_external_crate_type() {
2754
+ // This test relies on the external type not implementing `Reflect`,
2755
+ // so let's just double-check that it does not
2756
+ assert_not_impl_all!(std::collections::Bound<i32>: Reflect);
2757
+
2758
+ #[reflect_remote(std::collections::Bound<T>)]
2759
+ enum MyBound<T> {
2760
+ Included(T),
2761
+ Excluded(T),
2762
+ Unbounded,
2763
+ }
2764
2765
+ #[derive(Reflect)]
2766
+ struct MyType {
2767
+ #[reflect(remote = MyBound<String>)]
2768
+ bound: std::collections::Bound<String>,
2769
2770
2771
2772
#[cfg(feature = "glam")]
2773
mod glam {
2774
use super::*;
0 commit comments