Created
November 7, 2018 13:57
-
-
Save rust-play/dc09cf51d30d50500826a7eea62bf1f6 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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