leo/tests/expectations/compiler/tuple/access_out_of_bounds_fail.out
2022-08-01 14:14:39 -07:00

6 lines
454 B
Plaintext

---
namespace: Compile
expectation: Fail
outputs:
- "Error [ETYC0372024]: Tuple index `2` out of range for a tuple with length `2`\n --> compiler-test:6:20\n |\n 6 | return (t.0, t.2); // Index `t.2` is out of bounds.\n | ^\nError [ETYC0372014]: t.2 is not a valid core circuit call.\n --> compiler-test:6:20\n |\n 6 | return (t.0, t.2); // Index `t.2` is out of bounds.\n | ^\n"