blob: de5a57335408263e91bfe65d67aac8fc94ed3233 [file] [edit]
// Irrefutable `if let` pattern bindings still produce an incorrect suggestion
// to replace `let` with `const`.
// See https://github.com/rust-lang/rust/pull/152834#discussion_r3068766148
//@ known-bug: #152831
fn irrefutable_if_let_binding() {
if let x = 1 {
const { x }
}
}
fn main() {}