-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
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
PointerCast::ClosureFnPointer is unimplemented #274
Comments
Also used in a Rust UI test: src/test/ui/functions-closures/closure_to_fn_coercion-expected-types.rs // run-pass
#![allow(unused_variables)]
// Ensure that we deduce expected argument types when a `fn()` type is expected (#41755)
fn foo(f: fn(Vec<u32>) -> usize) { }
fn main() {
foo(|x| x.len())
} |
The examples no longer crash, but keeping the issue open to track adding support for |
4/5 tests in
|
It looks like |
I also get this unimplemented feature reported on s2n-quic/quic/s2n-quic-core/src/counter.rs |
@celinval Are you taking this on before Jan'23? I'm thinking of taking a stab at this issue since it looks pretty severe for P.S. 2023-01-06: No progress on this one. I got it drop |
Ok. Let me take a look. |
I tried this code:
using the following command line invocation:
with RMC version: 1.53
I expected to see this happen: It compiled
Instead, this happened: explanation
Crashed with an unimplemented on this construct
The text was updated successfully, but these errors were encountered: