Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
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
}