aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/writing-to-immutable-tup.rs
blob: bd974dcc786aa6fd19c4a06ccd53a7ef1e07d560 (plain) (blame)
1
2
3
4
5
// error-pattern: writing to immutable type
fn main() {
  let tup(int) t = tup(1);
  t._0 = 5;
}