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
fn main() {
let r = {
let x = 42;
let f = proc() &x;
f()
};
// Prints out '&1', but should give a compiler error 'borrowed value does not live long enough'.
println!("{:?}", r);
}