-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
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
Can't 'use' from an 'extern crate' defined in a function #23314
Comments
I believe this to be the root cause of #27301. A doc test with
becomes fn main() {
extern crate bignum;
use bignum::inits::Zero;
let a = bignum::BigNum::new(Zero::zero());
} Which then suggests to use |
Here's what I get for not compiling :v Related: rust-lang/rust#23314
Triage: this is rust-lang/rfcs#959, and we'd need an RFC to change this stuff, so I'm going to give it a close. |
@steveklabnik do you want to close #27301 as well then? |
Let's leave it open for now; I believe we could fix this by changing where the |
I never realized this before:
Seems pretty strange.
The text was updated successfully, but these errors were encountered: