dtolnay / linkme

Safe cross-platform linker shenanigans
Apache License 2.0
628 stars 42 forks source link

example warning: the type does not permit being left uninitialized #9

Closed arcnmx closed 5 years ago

arcnmx commented 5 years ago

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?