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
So the Rust compiler thinks it exists, but hasn’t gone creating the symbol for it and so it fails in linking.
The text was updated successfully, but these errors were encountered:
chris-morgan
changed the title
Defining a public method on a private type alias cause linking failures
Defining a public method on a private type alias causes linking failures
Aug 1, 2015
Suppose we have a crate named
c
.src/lib.rs:
Given that type aliases are supposed to be purely aliases,
new
should not be considered dead code. The fact thatB
is not public should be immaterial.Then we try to use it in src/main.rs:
So the Rust compiler thinks it exists, but hasn’t gone creating the symbol for it and so it fails in linking.
The text was updated successfully, but these errors were encountered: