Documentation unclear with Fn trait on extern "C" function pointers #69250
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
A-FFI
Area: Foreign function interface (FFI)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-lang
Relevant to the language team
Uh oh!
There was an error while loading. Please reload this page.
The relevant docs are here and here in the repo:
The code:
Does not compile even though
abc
can be called withoutunsafe
, which the docs seem to suggest is sufficient for this to work.Rust playground demonstrating the issue
I'd be happy to update the docs, but unfortunately I think I don't understand why this doesn't work well enough to do so.
The text was updated successfully, but these errors were encountered: