This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
15 lines
145 B
Rust
15 lines
145 B
Rust
// error-pattern:duplicate definition of f
|
|
|
|
import m1::{f};
|
|
import m2::{f};
|
|
|
|
mod m1 {
|
|
fn f() { }
|
|
}
|
|
|
|
mod m2 {
|
|
fn f() { }
|
|
}
|
|
|
|
fn main() { }
|