False positive improper_ctypes warning for ()
used through trait projection
#66374
Labels
A-FFI
Area: Foreign function interface (FFI)
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This code:
generates this warning on nightly:
but I believe that this is an false positive because
()
in a return position is indeed FFI safeThe text was updated successfully, but these errors were encountered: