11 lines
186 B
Rust
11 lines
186 B
Rust
// run-pass
|
|
|
|
#![warn(rust_2021_incompatible_closure_captures)]
|
|
|
|
fn main() {
|
|
if let a = "" {
|
|
//~^ WARNING: irrefutable `if let` pattern
|
|
drop(|_: ()| drop(a));
|
|
}
|
|
}
|