about summary refs log tree commit diff
path: root/src/test/compile-fail/and-init.rs
blob: 75e63ab2cc6323100a626614a42f29428d16abe2 (plain)
1
2
3
4
5
6
7
8
// error-pattern: Unsatisfied precondition constraint (for example, init(i

fn main() {
    let i: int;

    log false && { i = 5; true };
    log i;
}