Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- println!("{:?}", {
- mod priv_mod { pub struct Foo; } pub mod pub_mod { pub type Foo = super::priv_mod::Foo; }
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (file:///playground)
- error[E0433]: failed to resolve. Maybe a missing `extern crate priv_mod;`?
- --> src/main.rs:5:82
- |
- 5 | mod priv_mod { pub struct Foo; } pub mod pub_mod { pub type Foo = super::priv_mod::Foo; }
- | ^^^^^^^^ Maybe a missing `extern crate priv_mod;`?
- error: aborting due to previous error
- For more information about this error, try `rustc --explain E0433`.
- error: Could not compile `playground`.
- To learn more, run the command again with --verbose.
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment