Guest User

Untitled

a guest
Sep 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #![feature(unboxed_closures)]
  2.  
  3. trait Tt {}
  4.  
  5. struct S<A: Copy> {
  6. fuck: A
  7. }
  8.  
  9. fn add<'a, A: Copy + 'a>(fuck: A) -> Box<dyn Tt + 'a> {
  10. Box::new(S::<A> { fuck })
  11. }
  12.  
  13. impl<A: Copy> Tt for S<A> {}
Add Comment
Please, Sign In to add comment