Guest User

Untitled

a guest
May 26th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. fn main() {
  2.  
  3. trait Trait
  4. {
  5. type AssocType;
  6. }
  7.  
  8. impl Trait for i32
  9. {
  10. type AssocType = i32;
  11. }
  12.  
  13. fn gen_id_closure() -> impl Fn(<i32 as Trait>::AssocType)
  14. {
  15. |x| {}
  16. }
  17.  
  18. }
Add Comment
Please, Sign In to add comment