34 lines
328 B
Rust
34 lines
328 B
Rust
|
// error-pattern: common2
|
||
|
|
||
|
import mod1::*;
|
||
|
import mod2::*;
|
||
|
|
||
|
mod mod1 {
|
||
|
fn f1() {
|
||
|
log "f1";
|
||
|
}
|
||
|
fn common1() {
|
||
|
log "common"
|
||
|
}
|
||
|
fn common2() {
|
||
|
log "common"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
mod mod2 {
|
||
|
fn f2() {
|
||
|
log "f1";
|
||
|
}
|
||
|
fn common1() {
|
||
|
log "common"
|
||
|
}
|
||
|
fn common2() {
|
||
|
log "common"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
fn main() {
|
||
|
common2();
|
||
|
}
|