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
{{ message }}
Repository navigation
A struct defined to hold a closure accepts a proc in its constructor #11515
I don't think it should be closed quite yet, the error message is pretty awful:
foo.rs:6:30: 6:39 error: borrowed value does not live long enough
foo.rs:6 let test = ~Test { func: proc() {} };
^~~~~~~~~
foo.rs:5:11: 7:2 note: reference must be valid for the block at 5:10...
foo.rs:5 fn main() {
foo.rs:6 let test = ~Test { func: proc() {} };
foo.rs:7 }
foo.rs:6:9: 6:41 note: ...but borrowed value is only valid for the statement at 6:8
foo.rs:6 let test = ~Test { func: proc() {} };
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
Because this no longer compiles successfully, nominating go go from 1.0 backcompat-lang to P-low
Activity
brson commentedon Jan 15, 2014
Presumably with horrible results? Nominating.
nikomatsakis commentedon Jan 16, 2014
cc me
pnkfelix commentedon Jan 16, 2014
Accepting for P-backcompat-lang.
nikomatsakis commentedon Jan 16, 2014
presumably a symptom of the current semi-hacky integration of proc into rustc
eddyb commentedon Apr 11, 2014
Can't reproduce anymore, should we close this?
alexcrichton commentedon Apr 11, 2014
I don't think it should be closed quite yet, the error message is pretty awful:
Because this no longer compiles successfully, nominating go go from 1.0 backcompat-lang to P-low
pnkfelix commentedon Apr 17, 2014
Recategorizing as P-low, not on 1.0 milestone.
test: Add tests for closed issues
auto merge of #13811 : alexcrichton/rust/closed-issues, r=sfackler
Auto merge of rust-lang#11515 - y21:filter_map_bool_then_peel_refs, r…