Fixed types, and slimmed down code

I don't this we need to print the definition of the
imported value too, though it's quite possible.
This commit is contained in:
Theo Belaire 2015-04-25 15:45:29 -04:00
parent 69a5c379df
commit 5c05278fec
2 changed files with 8 additions and 16 deletions

View file

@ -12,14 +12,14 @@
mod sub1 {
fn foo() {} // Implementation 1
fn foo() {} // implementation 1
}
mod sub2 {
fn foo() {} // Implementation 2
fn foo() {} // implementation 2
}
use sub1::foo; //~ NOTE first imported here
use sub2::foo; //~ ERROR a value named `foo` has already been imported in this module [E0252]
use sub1::foo; //~ note previous import of `foo` here
use sub2::foo; //~ error a value named `foo` has already been imported in this module [e0252]
fn main() {}