« first day (2569 days earlier)      last day (905 days later) » 

7:36 AM
nothing get me more crazy than something that should work doesn't work
pub use toto;

crate_name::toto;

// no found
but crate::toto work inside the crate
 
8:06 AM
The toto module is only accessible in Africa.
 
8:46 AM
make sense
like in lib.rs
pub use std as toto;

mod foo {
    /// ```rust
    /// use my_crate_name::toto;
    /// ```
    fn foo() {}
}
cargo test
the fun part it... is work now
 
 
2 hours later…
10:46 AM
Methinks the rules are: actual_crate_name works in doctests and test executables, but not on plain test functions within the lib/main project.
 
11:26 AM
I have reached a weird position. I must post 5 more answers to get the badge.
 
11:53 AM
Low Earth Orbit Visualization => platform.leolabs.space/visualization
have fun
 
 
2 hours later…
2:04 PM
So, I have 5 answers to post, but most questions are just bad.
It might take a while.
 
 
6 hours later…
8:04 PM
@ᕮ_ᑎᕮT4 hah, you'll get there. congrats on the near-gold Rust badge :)
 

« first day (2569 days earlier)      last day (905 days later) »