We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Spot what's wrong with this code:
#![repr(C)] struct Foo(i32); extern "C" { fn foo(x: Foo); } fn main() {}
(Playground)
For some reason, top-level #![repr(..)] attributes are allowed, so Foo isn't repr(C). Sadly, @rust-lang/underhanded isn't a thing.
#![repr(..)]
Foo
repr(C)