518dc52f85
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
21 lines
302 B
Rust
21 lines
302 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(); }
|