1 error[E0594]: cannot assign to field `_iter.node` of immutable binding (Ast)
2 --> $DIR/issue-5500-1.rs:12:5
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).
11 | |____________^ cannot mutably borrow field of immutable binding
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0594`.