Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- let n = 5;
- // Get the reference of n
- let n_ref = &n; // & i32
- // Dereference n_ref to get n
- println!("{}", *n_ref);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement