rust/src/test/compile-fail/or-init.rs

9 lines
160 B
Rust
Raw Normal View History

// xfail-stage0
// error-pattern: Unsatisfied precondition constraint (for example, init(i
fn main() {
let int i;
log (false || {i = 5; true});
log i;
}