-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Misleading error message on use of FnOnce<(T, U), Output=V> #26970
New issue
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
Labels
A-closures
Area: Closures (`|…| { … }`)
A-diagnostics
Area: Messages for errors, warnings, and lints
Comments
Thanks, @steveklabnik! |
I think we just have to write a better message in |
I'm on it! |
When #27350 will be merged, it should be good (I hope !). |
I just "tested" the commit (in the sense of reading and understanding it) successfully. 😄 |
The error is E0215 here. |
arielb1
pushed a commit
to arielb1/rust
that referenced
this issue
Jul 28, 2015
This also calls the right API, which e.g. prevents a suggestion for #![feature(unboxed_closures)] on stable. Fixes rust-lang#26970
steveklabnik
added a commit
to steveklabnik/rust
that referenced
this issue
Jul 29, 2015
bors
added a commit
that referenced
this issue
Jul 29, 2015
This also calls the right API, which e.g. prevents a suggestion for #![feature(unboxed_closures)] on stable. Fixes #26970 r? @steveklabnik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-closures
Area: Closures (`|…| { … }`)
A-diagnostics
Area: Messages for errors, warnings, and lints
This stack overflow question shows that if one tries to declare a
FnOnce<(T, U), Output=V>
(which should be aFnOnce(T, U) -> V
), the error message is quite misleading.The text was updated successfully, but these errors were encountered: