You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<anon>:8:29: 8:32 warning: found type without foreign-function-safe
representation annotation in foreign module, consider adding a #[repr(...)] attribute to the type, #[warn(ctypes)] on by default
<anon>:8 pub fn extern_func(foo: Foo);
^~~
Despite Foo being marked as #[repr(C)]. This should either:
Include a note specifying which part of Foo is causing it to not be repr(C), or
Cause an error, since Foo is not repr(C), despite being marked as such.
The text was updated successfully, but these errors were encountered:
The following code:
(Playpen: http://is.gd/ANqwz9)
Gives the error:
Despite Foo being marked as #[repr(C)]. This should either:
The text was updated successfully, but these errors were encountered: