Debian Codegraph @

gcc/testsuite/rust/compile/issue-2391.rs

raw
1 #![allow(unused)]
2 const SOME_CONST: i32 = 12;
3
4 fn some_function() {
5 SOME_CONST = 15; // { dg-error "assignment of read-only location" }
6 }
7
8 fn main() {
9 some_function();
10 }