Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
closures
/
2229_closure_analysis
/
migrations
/
issue-78720.rs
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
));
}
}