2022-08-02 17:44:25 -07:00
|
|
|
// unit-test: Derefer
|
2022-04-16 16:03:14 +03:00
|
|
|
// EMIT_MIR derefer_terminator_test.main.Derefer.diff
|
2023-06-08 09:18:34 +02:00
|
|
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
2022-07-12 16:02:17 +03:00
|
|
|
|
2022-04-16 16:03:14 +03:00
|
|
|
fn main() {
|
|
|
|
let b = foo();
|
|
|
|
let d = foo();
|
|
|
|
match ****(&&&&b) {
|
|
|
|
true => {let x = 5;},
|
|
|
|
false => {}
|
|
|
|
}
|
|
|
|
let y = 42;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo() -> bool {
|
|
|
|
true
|
|
|
|
}
|