leo/tests/expectations/compiler/tuple/access_out_of_bounds_fail.out

6 lines
454 B
Plaintext
Raw Normal View History

2022-07-10 01:02:45 +03:00
---
namespace: Compile
expectation: Fail
outputs:
2022-07-20 21:19:00 +03:00
- "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"