Guest User

Untitled

a guest
May 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. trait T: Sized {}
  2.  
  3. struct A;
  4. impl T for A {}
  5.  
  6. struct B;
  7. impl T for B {}
  8.  
  9. fn f() -> impl T {
  10. if true {
  11. A
  12. } else {
  13. B
  14. }
  15. }
  16.  
  17. fn main(){}
Add Comment
Please, Sign In to add comment