SHARE
TWEET

Untitled

a guest Jul 17th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #![feature(specialization)]
  2.  
  3. trait Foo : Sized {
  4.     fn foo(self) {}
  5. }
  6.  
  7. struct A;
  8.  
  9. impl<T: Into<A>> Foo for T { }
  10.  
  11. impl From<f64> for A {
  12.     default fn from(_v: f64) -> A { A }
  13. }
  14.  
  15. fn main() {
  16.     Foo::foo(0.0)
  17. }
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