]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/double-import.rs
Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514
[rust.git] / tests / 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() {}