summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0594.rs
blob: 8b0cae7e17b3010720d689f840711d066cde461b (plain)
1
2
3
4
5
static NUM: i32 = 18;

fn main() {
    NUM = 20; //~ ERROR cannot assign to immutable static item `NUM`
}