This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
7 lines
78 B
Rust
7 lines
78 B
Rust
|
|
|
|
|
|
// error-pattern:explicit failure
|
|
fn f() -> ! { fail }
|
|
|
|
fn main() { f(); }
|