Closed
Description
I'm trying to call the stat function for a personal project. As far as I understood I need to call the libc::stat
function on the libc::stat
struct. I can understand how it works, but since struct and function are in the same module, the rust compiler is quite confused.
I've searched online and found nothing that tells me how to use libc::<stat as struct>
or <stat as fn>(path, &mut stat_struct)
or similar combinations.
How am I supposed to fix this? Is this a bug in the library? Or is it me that is missing something about the language?
Metadata
Metadata
Assignees
Labels
No labels