]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/double-import.rs
Auto merge of #79780 - camelid:use-summary_opts, r=GuillaumeGomez
[rust.git] / src / test / ui / imports / double-import.rs
1 // This tests that conflicting imports shows both `use` lines
2 // when reporting the error.
3
4 mod sub1 {
5     pub fn foo() {} // implementation 1
6 }
7
8 mod sub2 {
9     pub fn foo() {} // implementation 2
10 }
11
12 use sub1::foo;
13 use sub2::foo; //~ ERROR the name `foo` is defined multiple times
14
15 fn main() {}