Skip to content

Instantly share code, notes, and snippets.

@safetydank
Created October 7, 2014 08:58
Show Gist options
  • Save safetydank/78d13e4f622d92d2e8ed to your computer and use it in GitHub Desktop.
Save safetydank/78d13e4f622d92d2e8ed to your computer and use it in GitHub Desktop.
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