Sign in
◑
Theme
rust
/
rust
/
9b1f20d20dc00a950f99a00a34be9d2ca78d1f0d
/
.
/
tests
/
ui
/
closures
/
issue-84044-drop-non-mut.rs
blob: aed7750f1b9dfdaa2ccce9f6464edbc0cdd5b88c [
file
]
// #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
}