518dc52f85
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
9 lines
152 B
Rust
9 lines
152 B
Rust
// error-pattern: Unsatisfied precondition constraint (for example, init(i
|
|
|
|
fn main() {
|
|
let i: int;
|
|
|
|
log false && { i = 5; true };
|
|
log i;
|
|
}
|