daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #![feature(unsize, coerce_unsized)]
  2. #![allow(unused)]
  3.  
  4. use std::ops::CoerceUnsized;
  5. use std::marker::Unsize;
  6. use std::any::Any;
  7.  
  8. struct Foo<T: ?Sized, U: ?Sized>(Box<T>, Box<U>);
  9.  
  10. impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Foo<dyn Any, dyn Any>> for Foo<T, U> {}
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