Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Foo;
- impl Foo {
- fn foo<T>(&mut self, _: T) {}
- fn bar(&self) {}
- }
- fn main() {
- let mut x = Foo;
- x.foo(x.bar());
- Foo::foo(&mut x, Foo::bar(&x));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement