This repository was archived by the owner on May 23, 2024. It is now read-only.
Commit 4116514
committed
ices/109298.rs: fixed with errors
=== 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`.
==============1 parent ffd334d commit 4116514
1 file changed
+0
-0
lines changedFile renamed without changes.
0 commit comments