Sign in
gnu
/
gcc.git
/
refs/heads/master
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
tuplepattern-rest-readonly.rs
blob: db165ef4f26483af536436b79d23aa43a1498712 [
file
] [
log
] [
blame
]
fn
main
()
{
let
(
a
,
..,
b
)
=
(
1
,
1
);
a
=
2
;
// { dg-error "assignment of read-only variable .a." }
b
=
2
;
// { dg-error "assignment of read-only variable .b." }
}