Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn a(_: &usize) {}
- fn b(_: &mut usize) {}
- fn foo(r: &usize) {
- a(r);
- }
- fn main() {
- let mut owned = 42usize;
- foo(&mut owned)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement