Skip to content

Instantly share code, notes, and snippets.

Created May 10, 2020
What would you like to do?
Code shared from the Rust Playground
fn test (i:&mut i32) {}
fn main() {
let mut i:i32 = 1;
let ref_i = &mut i;
test (ref_i);
*ref_i = 2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment