☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
issue-2391.rs
☽
☼
gcc/testsuite/rust/compile/issue-2391.rs
code
plain
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
}