]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-5500-1.mir.stderr
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-5500-1.mir.stderr
1 error[E0594]: cannot assign to field `_iter.node` of immutable binding (Ast)
2   --> $DIR/issue-5500-1.rs:12:5
3    |
4 LL |       let _iter = TrieMapIterator{node: &a};
5    |           ----- help: make this binding mutable: `mut _iter`
6 LL | /     _iter.node = & //[ast]~ ERROR cannot assign to field `_iter.node` of immutable binding
7 LL | |                    //[mir]~^ ERROR cannot assign to field `_iter.node` of immutable binding (Ast)
8 LL | |                    // MIR doesn't generate an error because the code isn't reachable. This is OK
9 LL | |                    // because the test is here to check that the compiler doesn't ICE (cf. #5500).
10 LL | |     panic!()
11    | |____________^ cannot mutably borrow field of immutable binding
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0594`.