Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. struct Foo;
  2.  
  3. impl Foo {
  4. fn foo<T>(&mut self, _: T) {}
  5. fn bar(&self) {}
  6. }
  7.  
  8. fn main() {
  9. let mut x = Foo;
  10. x.foo(x.bar());
  11. Foo::foo(&mut x, Foo::bar(&x));
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement