Skip to content

Commit bdb5502

Browse files
committed
Fix some marker impls
1 parent 51355ad commit bdb5502

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/core/src/marker.rs

Lines changed: 4 additions & 4 deletions
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: ConstParamTy, const N: usize} [T; N],
281-
{T: ConstParamTy} [T],
282-
{T: ConstParamTy} &T,
280+
{T: StructuralEq, const N: usize} [T; N],
281+
{T: StructuralEq} [T],
282+
{T: ?Sized + StructuralEq} &T,
283283
}
284284

285285
/// Types whose values can be duplicated simply by copying bits.
@@ -998,7 +998,7 @@ marker_impls! {
998998
str /* Technically requires `[u8]: ConstParamTy` */,
999999
{T: ConstParamTy, const N: usize} [T; N],
10001000
{T: ConstParamTy} [T],
1001-
{T: ConstParamTy} &T,
1001+
{T: ?Sized + ConstParamTy} &T,
10021002
}
10031003

10041004
/// A common trait implemented by all function pointers.

0 commit comments

Comments
 (0)