Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct True;
- struct False;
- trait Eq<B> {
- type Output;
- }
- impl<A> Eq<A> for A{
- type Output = True;
- }
- impl<A, B> Eq<A> for B {
- type Output = False;
- }
- fn main() {
- println!("Hello, world!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement