☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
wrong_lhs_assignment.rs
☽
☼
gcc/testsuite/rust/compile/wrong_lhs_assignment.rs
code
plain
raw
1
fn foo() {
2
1 = 3; // { dg-error "assignment of read-only location" }
3
}
4
5
fn main() {
6
foo();
7
}