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);
}
Activity
lilyball commentedon Jan 30, 2014
This can segfault too, if you change what
x
is.cc @nikomatsakis
zr40 commentedon Jan 30, 2014
Might be related to #10398.
nikomatsakis commentedon Jan 31, 2014
I'll take a look.
alexcrichton commentedon Mar 1, 2014
This has been fixed, flagging as needstest.
test: Add some tests for closed issues
auto merge of #12738 : alexcrichton/rust/needstest, r=brson,just
flaper87 commentedon Mar 7, 2014
a small description in the test files explaining what the test does would have been nice.