Fix StructuralEq impls for &T, [T] and [T; N]

(`StructuralEq` is shallow for some reason...)
This commit is contained in:
Maybe Waffle 2023-05-01 11:45:51 +00:00
parent 182eee298c
commit c31754651d

View File

@ -277,9 +277,9 @@ marker_impls! {
bool,
char,
str /* Technically requires `[u8]: StructuralEq` */,
{T: StructuralEq, const N: usize} [T; N],
{T: StructuralEq} [T],
{T: ?Sized + StructuralEq} &T,
{T, const N: usize} [T; N],
{T} [T],
{T: ?Sized} &T,
}
/// Types whose values can be duplicated simply by copying bits.