Sign in
fuchsia
/
third_party
/
rust
/
4360fd7f342943b3d25a3eb7064fd3ef7599274e
/
.
/
tests
/
ui
/
closures
/
issue-84044-drop-non-mut.rs
blob: aed7750f1b9dfdaa2ccce9f6464edbc0cdd5b88c [
file
] [
log
] [
blame
]
// #84044: This used to ICE.
fn
main
()
{
let
f
=
||
{};
drop
(&
mut
f
);
//~ ERROR cannot borrow `f` as mutable, as it is not declared as mutable
}