Closed
Description
% cat a.rs
use std::io::error::*;
use std::thread::*;
fn main() { }
% rustc a.rs
a.rs:2:5: 2:20 error: a type named `Result` has already been imported in this module [E0251]
a.rs:2 use std::thread::*;
^~~~~~~~~~~~~~~
Issuing an ambiguity error about a name which is never used does more than create needless busywork and break namespace encapsulation. It means you can never add anything to a module without breaking an unknown and unknowable amount of source code in the wild when you happen to choose the same name as did some other crate.
Metadata
Metadata
Assignees
Labels
No labels