aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/unchecked_touch.zc
blob: 141639df3e2d0c5e56c185449a5c700c97216785 (plain) (blame)
1
2
// expect: x: is tracked by the analyzer and can't be used in unchecked code
fn main() { let x = new(1); unchecked { x[0] = 1; } return 0; }