mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
7 lines
154 B
Rust
7 lines
154 B
Rust
// #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
|
|
}
|