We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#![feature(unboxed_closures, unboxed_closure_sugar)] fn main() { let task: Box<|: int| -> int> = box |: x| x; task.call_once((0i, )); }
<anon>:5:5: 5:27 error: source trait is private <anon>:5 task.call_once((0i, )); ^~~~~~~~~~~~~~~~~~~~~~
(Adding a use std::ops::FnOnce hits #16599.)
use std::ops::FnOnce
The text was updated successfully, but these errors were encountered:
libstd: Add Fn/FnMut/FnOnce to the prelude.
Fn
FnMut
FnOnce
e0a165c
Closes rust-lang#16600.
auto merge of #16615 : pcwalton/rust/unboxed-closures-prelude, r=huonw
05df25f
Closes #16600. r? @huonw
Auto merge of rust-lang#16600 - lnicola:fix-release-3, r=lnicola
68c506f
internal: Also downgrade node to 16 :roll_eyes:
Successfully merging a pull request may close this issue.
(Adding a
use std::ops::FnOnce
hits #16599.)The text was updated successfully, but these errors were encountered: