Guest User

Untitled

a guest
Mar 22nd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #![feature(specialization)]
  2.  
  3. struct Baz;
  4.  
  5. trait Foo<T> {
  6. fn bar();
  7. }
  8.  
  9. default impl<T> Foo<Baz> for T {
  10. fn bar() {
  11. println!("wooooooo!");
  12. }
  13. }
  14.  
  15. fn main() {}
Add Comment
Please, Sign In to add comment