]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-assign-to-constants.rs
Merge commit 'b52fb5234cd7c11ecfae51897a6f7fa52e8777fc' into clippyup
[rust.git] / src / test / ui / borrowck / borrowck-assign-to-constants.rs
1 static foo: isize = 5;
2
3 fn main() {
4     // assigning to various global constants
5     foo = 6; //~ ERROR cannot assign to immutable static item `foo`
6 }