tomaka / shared_library

Apache License 2.0
19 stars 15 forks source link

all field is public? #14

Open clouds56 opened 6 years ago

clouds56 commented 6 years ago
type privtype = i32;

shared_library!(Lib, fn f(a: privtype) -> i32;)

won't compile, saying error[E0446]: private type `privtype` in public interface

with libc = "0.2.39" shared_library = "0.1.8"

cargo 1.26.0-nightly (d6c3983fe 2018-03-16) rustc 1.26.0-nightly (75af15ee6 2018-03-20)