Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created March 14, 2018 01:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rust-play/9c1a377b6cb00d0e4e8acdd1e1302349 to your computer and use it in GitHub Desktop.
Save rust-play/9c1a377b6cb00d0e4e8acdd1e1302349 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
#![feature(specialization)]
struct Baz;
trait Foo<T> {
fn bar();
}
default impl<T> Foo<Baz> for T {
fn bar() {
println!("wooooooo!");
}
}
fn main() {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment