You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the ownership guide is an example for borrowing that doesn't work with the previously introduced main function. I guess this is because cross-borrowing is not allowed anymore?
fnmain(){let x = box 5i;add_one(x);println!("{}", x);}