Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct MyType;
- fn f(_: &MyType) {}
- fn e(_: &mut MyType) {}
- fn main() {
- let mut a = MyType{};
- let b = &mut a;
- let c = &a;
- e(b);
- f(c);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement