]> git.lizzy.rs Git - rust.git/blob - src/test/ui/E0594.rs
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / E0594.rs
1 // revisions: ast mir
2 //[mir]compile-flags: -Z borrowck=mir
3
4 static NUM: i32 = 18;
5
6 fn main() {
7     NUM = 20; //[ast]~ ERROR E0594
8               //[mir]~^ ERROR cannot assign to immutable static item `NUM`
9 }