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.
Spot what's wrong with this code:
(Playground)
For some reason, top-level
#![repr(..)]attributes are allowed, soFooisn'trepr(C). Sadly,@rust-lang/underhanded isn't a thing.