rust/src/test/compile-fail/cross-crate-glob-collision.rs
Marijn Haverbeke 16e5760564 Fix bug in safe-reference checker
At some point, a refactor broke the code that handled local declarations
to no longer descend into the initializer expressions.

Closes #1846
2012-02-15 11:53:32 +01:00

14 lines
251 B
Rust

// error-pattern: is glob-imported from multiple different modules
// issue #482
use std;
// expecting swap to be defined in vec
import vec::*;
import alternate_supplier::*;
mod alternate_supplier {
fn contains() { }
}
fn main() { contains() }