Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. trait Color {
  2. type Channel;
  3. }
  4.  
  5. trait CloneColor: Color
  6. where
  7. Self::Channel: Clone,
  8. {}
  9.  
  10. fn foo<T: CloneColor>() {
  11. let f = T::Channel::clone;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement