mozilla/rust — Issue #1911: glob-imported const not resolved after used as a binding
Author: brson
Created: 2012-02-29 06:46:02+00:00
State: open

```
import clang::*;

fn main(args: [str]) unsafe {
alt 0 {
CXType_Record {
fail
}
_ {
fail
}
};
log(error, CXType_Record);
}

mod clang {
const CXType_Record: int = 105;
}
```

```
../src/test/run-pass/import-glob-2.rs:12:15: 12:28 error: unresolved name: CXType_Record
../src/test/run-pass/import-glob-2.rs:12 log(error, CXType_Record);
```