Created
October 7, 2014 08:58
-
-
Save safetydank/78d13e4f622d92d2e8ed to your computer and use it in GitHub Desktop.
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 IA { | |
fn foo(&self); | |
} | |
trait IB : IA { | |
fn bar(&self); | |
} | |
struct SS { | |
x : int | |
} | |
impl IB for SS { | |
fn foo(&self) { | |
println!("foo!"); | |
} | |
fn bar(&self) { | |
println!("bar! {}", self.x); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment