Skip to content

Commit c317546

Browse files
committed
Fix StructuralEq impls for &T, [T] and [T; N]
(`StructuralEq` is shallow for some reason...)
1 parent 182eee2 commit c317546

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/marker.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,9 @@ marker_impls! {
277277
bool,
278278
char,
279279
str /* Technically requires `[u8]: StructuralEq` */,
280-
{T: StructuralEq, const N: usize} [T; N],
281-
{T: StructuralEq} [T],
282-
{T: ?Sized + StructuralEq} &T,
280+
{T, const N: usize} [T; N],
281+
{T} [T],
282+
{T: ?Sized} &T,
283283
}
284284

285285
/// Types whose values can be duplicated simply by copying bits.

0 commit comments

Comments
 (0)