28459ca0eb
The typestate analysis now reflects that the second operand of a logical and or or may not be evaluated.
9 lines
160 B
Rust
9 lines
160 B
Rust
// xfail-stage0
|
|
// error-pattern: Unsatisfied precondition constraint (for example, init(i
|
|
|
|
fn main() {
|
|
let int i;
|
|
|
|
log (false || {i = 5; true});
|
|
log i;
|
|
} |