Skip to content

Commit

Permalink
Implement Min trait in new solver
Browse files Browse the repository at this point in the history
  • Loading branch information
fee1-dead committed Jun 28, 2024
1 parent cc4a029 commit 47492c9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions core/src/marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1054,14 +1054,15 @@ pub mod effects {

#[lang = "EffectsTyCompat"]
#[marker]
pub trait TyCompat<T> {}
pub trait TyCompat<T: ?Sized> {}

impl<T> TyCompat<T> for T {}
impl<T> TyCompat<T> for Maybe {}
impl<T: ?Sized> TyCompat<T> for T {}
impl<T: ?Sized> TyCompat<T> for Maybe {}
impl<T: ?Sized> TyCompat<Maybe> for T {}

#[lang = "EffectsMin"]
pub trait Min {
#[lang = "EffectsMinOutput"]
type Output;
type Output: ?Sized;
}
}

0 comments on commit 47492c9

Please sign in to comment.