2023-06-20 16:29:39 +08:00
|
|
|
// check-pass
|
|
|
|
|
2022-01-18 19:38:17 -03:00
|
|
|
fn and_chain() {
|
|
|
|
let z;
|
|
|
|
if true && { z = 3; true} && z == 3 {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn and_chain_2() {
|
|
|
|
let z;
|
|
|
|
true && { z = 3; true} && z == 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn or_chain() {
|
|
|
|
let z;
|
|
|
|
if false || { z = 3; false} || z == 3 {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|