The example on 
https://github.com/mozilla/rust/wiki/Meeting-weekly-2013-09-10#fate-of-const
seems sensible at first, but the rule it suggests would not be safe.
Allowing one closure to take &mut while another takes &const would
create a data race if the two closures are executed in parallel.

task::try only takes one closure and returns a Result, so it does not
have the same problem as the "motivating example".
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to