- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
Closed
Description
When I run
fn f() {
}; 
let x: ~fn() = ~f;I get the error message
rust> fn f() {}; let x: ~fn() = ~f;
<anon>:7:18: 7:19 error: obsolete syntax: managed or owned closure
<anon>:7 fn f() {}; let x: ~fn() = ~f;
                           ^
note: managed closures have been removed and owned closures are now written `proc()`
error: aborting due to previous error
task 'rustc' failed at 'explicit failure', /build/buildd/rust-nightly-201312020805~61443dc~precise/src/libsyntax/diagnosMetadata
Metadata
Assignees
Labels
No labels