rust/src/test/compile-fail/cross-crate-glob-collision.rs

13 lines
253 B
Rust
Raw Normal View History

// error-pattern:'swap' is glob-imported from multiple different modules
// issue #482
use std;
// expecting swap to be defined in vec
import std::vec::*;
import alternate_supplier::*;
mod alternate_supplier {
2011-07-27 07:19:39 -05:00
fn swap() { }
}
2011-07-27 07:19:39 -05:00
fn main() { swap() }