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