9 lines
145 B
Rust
9 lines
145 B
Rust
// xfail-stage0
|
|
// xfail-stage1
|
|
// xfail-stage2
|
|
// error-pattern: writing to immutable type
|
|
fn main() {
|
|
let tup(int) t = tup(1);
|
|
t._0 = 5;
|
|
}
|