mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 18:24:04 +00:00
21 lines
336 B
Rust
21 lines
336 B
Rust
// skip-filecheck
|
|
//@ test-mir-pass: Derefer
|
|
// EMIT_MIR derefer_terminator_test.main.Derefer.diff
|
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
|
|
|
fn main() {
|
|
let b = foo();
|
|
let d = foo();
|
|
match ****(&&&&b) {
|
|
true => {
|
|
let x = 5;
|
|
}
|
|
false => {}
|
|
}
|
|
let y = 42;
|
|
}
|
|
|
|
fn foo() -> bool {
|
|
true
|
|
}
|