We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Box<Fn(int) -> int + 'static>
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
#![feature(unboxed_closures)] #[cfg(error)] fn adder(y: int) -> Box<Fn(int) -> int + 'static> { //~^ error: explicit lifetime bound required box move |&: x| y + x } #[cfg(not(error))] fn adder(y: int) -> Box<Fn<(int,), int> + 'static> { box move |&: x| y + x } fn main() {}
Version: ebc625a (2014-11-08)
ebc625a
cc @nikomatsakis
The text was updated successfully, but these errors were encountered:
Added to metabug, will take a look.
Sorry, something went wrong.
This is due to the precedence of +. It is fixed by #19298.
+
Add tests for the parsing of + and the error messages if people get…
b219bd5
… it wrong. Fixes rust-lang#18772.
21d5d13
No branches or pull requests
STR
Version:
ebc625a
(2014-11-08)cc @nikomatsakis
The text was updated successfully, but these errors were encountered: