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:
parent
69a5c379df
commit
5c05278fec
2 changed files with 8 additions and 16 deletions
|
|
@ -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() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue