Closed
Description
type Foo = extern "C" fn(::std::ffi::CStr);
extern "C" {
fn meh(blah: Foo);
}
fn main() {
meh as usize;
}
Playground: https://play.rust-lang.org/?gist=3fa8a28e06dc77fb478a33e872348f15&version=stable&mode=debug&edition=2015
Metadata
Metadata
Assignees
Labels
Area: Foreign function interface (FFI)Category: This is a bug.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Relevant to the compiler team, which will review and decide on the PR/issue.ICE tracked in rust-lang/glacier.