Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Code shared from the Rust Playground
trait Rem {
type Output: ?Sized;
}
trait Float: Rem<Output = Self> { }
struct IeeeFloat;
impl Float for IeeeFloat { }
impl Rem for IeeeFloat
where Self: Float // elaborated to `where Self: Float, Self: Rem<Output = Self>`
{
type Output = IeeeFloat;
}
fn main() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.