2021-08-01 19:18:50 -05:00
|
|
|
// check-pass
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let x = 1 else { return }; //~ WARN irrefutable `let...else` pattern
|
2022-10-29 22:02:10 -05:00
|
|
|
|
|
|
|
// Multiline else blocks should not get printed
|
|
|
|
let x = 1 else { //~ WARN irrefutable `let...else` pattern
|
|
|
|
eprintln!("problem case encountered");
|
|
|
|
return
|
|
|
|
};
|
2021-08-01 19:18:50 -05:00
|
|
|
}
|