518dc52f85
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
13 lines
263 B
Rust
13 lines
263 B
Rust
// error-pattern:unresolved name
|
|
// a good test that we merge paths correctly in the presence of a
|
|
// variable that's used before it's declared
|
|
|
|
fn my_fail() -> ! { fail; }
|
|
|
|
fn main() {
|
|
alt true { false { my_fail(); } true { } }
|
|
|
|
log x;
|
|
let x: int;
|
|
}
|