Created
March 14, 2018 01:01
-
-
Save rust-play/9c1a377b6cb00d0e4e8acdd1e1302349 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
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
#![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