dtolnay / linkme

Safe cross-platform linker shenanigans

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

example warning: the type does not permit being left uninitialized

arcnmx opened this issue · comments

Following the example in the readme results in a warning like:

warning: the type `for<'r> fn(...)` does not permit being left uninitialized
this code causes undefined behavior when executed
help: use `MaybeUninit<T>` instead

I'm using a recent nightly rustc. Presumably this doesn't actually cause any issues because the typecheck part is never called?