mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
19 lines
310 B
Rust
19 lines
310 B
Rust
// skip-filecheck
|
|
// unit-test: 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
|
|
}
|