blob: ff5d284614bf1390d207e690b0c5bb0614ebb213 [file] [log] [blame]
// run-pass
#![warn(rust_2021_incompatible_closure_captures)]
fn main() {
if let a = "" {
//~^ WARNING: irrefutable `if let` pattern
drop(|_: ()| drop(a));
}
}