Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 47492c9

Browse files
committedJun 28, 2024
Implement Min trait in new solver
1 parent cc4a029 commit 47492c9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎core/src/marker.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -1054,14 +1054,15 @@ pub mod effects {
10541054

10551055
#[lang = "EffectsTyCompat"]
10561056
#[marker]
1057-
pub trait TyCompat<T> {}
1057+
pub trait TyCompat<T: ?Sized> {}
10581058

1059-
impl<T> TyCompat<T> for T {}
1060-
impl<T> TyCompat<T> for Maybe {}
1059+
impl<T: ?Sized> TyCompat<T> for T {}
1060+
impl<T: ?Sized> TyCompat<T> for Maybe {}
1061+
impl<T: ?Sized> TyCompat<Maybe> for T {}
10611062

10621063
#[lang = "EffectsMin"]
10631064
pub trait Min {
10641065
#[lang = "EffectsMinOutput"]
1065-
type Output;
1066+
type Output: ?Sized;
10661067
}
10671068
}

0 commit comments

Comments
 (0)
Failed to load comments.