aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/unchecked_touch.zc
blob: b2e0edf6ecff9f505b363c5500671210cc0b4578 (plain) (blame)
1
2
3
4
5
namespace;
include rt;

// expect: x: is tracked by the analyzer and can't be used in unchecked code
fn main() { let x = rt.new(1); unchecked { x[0] = 1; } return 0; }