mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 08:18:44 +00:00
20 lines
250 B
Rust
20 lines
250 B
Rust
//@ check-pass
|
|
|
|
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() {
|
|
}
|