We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a.rs:
#![crate_type = "lib"] pub use private::P; pub struct S { p: P, } mod private { // `pub mod` solves problem pub struct P { p: i32, } pub static THREE: P = P { p: 3 }; } pub static A: S = S { p: private::THREE };
b.rs:
extern crate a; fn main() { let B: a::S = a::A; }
Building b.rs with --debuginfo=1 causes link error:
b.rs
--debuginfo=1
note: b.o:(.debug_info+0xb3): undefined reference to `private::THREE::ha5edf056fc0d59b6oaa::v0.0'
I have no idea if this is sub-bug of #11685 or not: is it illegal to use private::THREE in pub static A?
private::THREE
pub static A
The text was updated successfully, but these errors were encountered:
This is almost certainly #13213.
Sorry, something went wrong.
Closing as a dupe of #13213, but moving the example over there because it's self contained.
No branches or pull requests
a.rs:
b.rs:
Building
b.rs
with--debuginfo=1
causes link error:I have no idea if this is sub-bug of #11685 or not: is it illegal to use
private::THREE
inpub static A
?The text was updated successfully, but these errors were encountered: