Created
February 11, 2013 13:53
-
-
Save lifthrasiir/4754534 to your computer and use it in GitHub Desktop.
Rust import problems (valid as of 19dfec2)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// crate name requires an absolute path???? (non-working) | |
mod A { pub fn x() { core::io::stdout(); } } | |
fn main() { A::x(); } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// crate name requires an absolute path???? (working) | |
mod A { pub fn x() { ::core::io::stdout(); } } | |
fn main() { A::x(); } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// core::io shadowed by A::*???? (non-working) | |
mod A { } | |
use io::{ReaderUtil, WriterUtil}; | |
use A::*; | |
fn main() { } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// core::io shadowed by A::*???? (working) | |
mod A { } | |
use A::*; | |
use io::{ReaderUtil, WriterUtil}; | |
fn main() { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment