repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
rust
/
compile
/
issue-2391.rs
blob
4904502c7c18e56cbcf74cbaf35d62a884351f37
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
}