SHARE
TWEET

Untitled

a guest Apr 18th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct Foo;
  2. struct Bar<T = ()>(T);
  3.  
  4. impl Foo {
  5.     fn new() -> Self { Self }
  6. }
  7.  
  8. impl Bar {
  9.     fn new() -> Self { unimplemented!() }
  10. }
  11.  
  12. fn main() {
  13.     Foo::new();
  14.     Bar::new();
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top