You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 23, 2024. It is now read-only.
=== stdout ===
=== stderr ===
warning: unused variable: `y`
--> /home/runner/work/glacier/glacier/ices/109298.rs:3:18
|
3 | let [ref y, ref mut z @ ..] = x;
| ^ help: if this is intentional, prefix it with an underscore: `_y`
|
= note: `#[warn(unused_variables)]` on by default
warning: unused variable: `z`
--> /home/runner/work/glacier/glacier/ices/109298.rs:3:29
|
3 | let [ref y, ref mut z @ ..] = x;
| ^ help: if this is intentional, prefix it with an underscore: `_z`
error[E0596]: cannot borrow `f` as mutable, as it is not declared as mutable
--> /home/runner/work/glacier/glacier/ices/109298.rs:5:5
|
3 | let [ref y, ref mut z @ ..] = x;
| - calling `f` requires mutable binding due to mutable borrow of `x`
4 | };
5 | f();
| ^ cannot borrow as mutable
|
help: consider changing this to be mutable
|
2 | let mut f = || {
| +++
error: aborting due to previous error; 2 warnings emitted
For more information about this error, try `rustc --explain E0596`.
==============
0 commit comments