Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 4c94653

Browse files
ices/82438.rs: fixed with errors (#673)
=== 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]>
1 parent 0fee26d commit 4c94653

File tree

1 file changed

+0
-0
lines changed

1 file changed

+0
-0
lines changed
File renamed without changes.

0 commit comments

Comments
 (0)