1 2 3 4 5 6 7 8 9 10 11 12 13
newtype MyString = string; newtype MyInt = i32; #[rust(impl_partial_eq, impl_eq)] struct WithNewtypes { required s @ 1 = MyString; i @ 2 = MyInt; } struct WithoutNewtypes { required s @ 1 = string; i @ 2 = i32; }