aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/writing-to-immutable-rec.rs
blob: 42206fe4124ef91328c2836ca9faf152e657a89b (plain) (blame)
1
2
3
4
5
// error-pattern: writing to immutable type
fn main() {
  let rec(int x) r = rec(x=1);
  r.x = 6;
}