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 ===
error[E0594]: cannot assign to `inner`, as it is not declared as mutable
--> /home/runner/work/glacier/glacier/ices/82438.rs:4:9
|
2 | let inner;
| ----- help: consider changing this to be mutable: `mut inner`
3 | let outer = || {
4 | inner = || {};
| ^^^^^^^^^^^^^ cannot assign
error[E0381]: borrow of possibly-uninitialized variable: `inner`
--> /home/runner/work/glacier/glacier/ices/82438.rs:3:17
|
3 | let outer = || {
| ^^ use of possibly-uninitialized `inner`
4 | inner = || {};
| ----- borrow occurs due to use in closure
error[E0596]: cannot borrow `outer` as mutable, as it is not declared as mutable
--> /home/runner/work/glacier/glacier/ices/82438.rs:7:5
|
3 | let outer = || {
| ----- help: consider changing this to be mutable: `mut outer`
4 | inner = || {};
| ----- calling `outer` requires mutable binding due to mutable borrow of `inner`
...
7 | outer();
| ^^^^^ cannot borrow as mutable
error: aborting due to 3 previous errors
Some errors have detailed explanations: E0381, E0594, E0596.
For more information about an error, try `rustc --explain E0381`.
==============
Co-authored-by: rustbot <[email protected]>
0 commit comments