Created
February 10, 2014 02:04
-
-
Save DaGenix/8909133 to your computer and use it in GitHub Desktop.
this should compile, right?
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
pub trait Even { | |
fn say(&self); | |
} | |
impl <'a, E: Even> Even for &'a mut E { | |
fn say(&self) { } | |
} | |
pub trait Odd { | |
fn say(&self); | |
} | |
fn print_odd<O: Odd>(o: &mut O) { | |
o.say(); | |
} | |
fn main() { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fails with: