rust/src/test/run-pass/issue-2316-c.rs
Tim Chevalier 164039e867 Don't re-export a glob-imported ID when the same ID is defined within
a module

See the test case I added (issue-2316-c) for a concrete example.
issue-2316 also contains the originally reported test case. resolve
was using bitwise or instead of logical or when checking exports,
resulting in excessively eager evaluation. A one-line fix that took
six hours to isolate ;-)
2012-05-01 08:43:17 -07:00

10 lines
216 B
Rust

// xfail-fast - check-fast doesn't understand aux-build
// aux-build:issue_2316_a.rs
// aux-build:issue_2316_b.rs
use issue_2316_b;
import issue_2316_b::cloth;
fn main() {
let _c: cloth::fabric = cloth::calico;
}