Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is the "use starts at the crate root" thing. If you move the "extern crate", then the place it ends up in the module hierarchy is different, and so it breaks.

I always leave "extern crate" in the crate root; then it all Just Works.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: