1 error[E0594]: cannot assign to immutable static item `foo`
2 --> $DIR/borrowck-assign-to-constants.rs:8:5
4 LL | foo = 6; //[ast]~ ERROR cannot assign to immutable static item
5 | ^^^^^^^ cannot assign
7 error: aborting due to previous error
9 For more information about this error, try `rustc --explain E0594`.