|
1 | 1 | namespace = "Compile"
|
2 | 2 | expectation = "Fail"
|
3 | 3 | outputs = ["""
|
| 4 | +Error [ETYC0372117]: Expected a signed integer, group, or field but type `u8` was found. |
| 5 | + --> compiler-test:5:24 |
| 6 | + | |
| 7 | + 5 | let b: bool = -a == -1u8; |
| 8 | + | ^ |
4 | 9 | Error [ETYC0372008]: The value -1 is not a valid `u8`
|
5 | 10 | --> compiler-test:5:29
|
6 | 11 | |
|
7 | 12 | 5 | let b: bool = -a == -1u8;
|
8 | 13 | | ^^^^
|
| 14 | +Error [ETYC0372117]: Expected a signed integer, group, or field but type `u8` was found. |
| 15 | + --> compiler-test:6:24 |
| 16 | + | |
| 17 | + 6 | let c: bool = -a > -1u8; |
| 18 | + | ^ |
9 | 19 | Error [ETYC0372008]: The value -1 is not a valid `u8`
|
10 | 20 | --> compiler-test:6:28
|
11 | 21 | |
|
12 | 22 | 6 | let c: bool = -a > -1u8;
|
13 | 23 | | ^^^^
|
| 24 | +Error [ETYC0372117]: Expected a signed integer, group, or field but type `u8` was found. |
| 25 | + --> compiler-test:7:24 |
| 26 | + | |
| 27 | + 7 | let d: bool = -a < -1u8; |
| 28 | + | ^ |
14 | 29 | Error [ETYC0372008]: The value -1 is not a valid `u8`
|
15 | 30 | --> compiler-test:7:28
|
16 | 31 | |
|
17 | 32 | 7 | let d: bool = -a < -1u8;
|
18 | 33 | | ^^^^
|
| 34 | +Error [ETYC0372117]: Expected a signed integer, group, or field but type `u8` was found. |
| 35 | + --> compiler-test:8:24 |
| 36 | + | |
| 37 | + 8 | let e: bool = -a >= -1u8; |
| 38 | + | ^ |
19 | 39 | Error [ETYC0372008]: The value -1 is not a valid `u8`
|
20 | 40 | --> compiler-test:8:29
|
21 | 41 | |
|
22 | 42 | 8 | let e: bool = -a >= -1u8;
|
23 | 43 | | ^^^^
|
| 44 | +Error [ETYC0372117]: Expected a signed integer, group, or field but type `u8` was found. |
| 45 | + --> compiler-test:9:24 |
| 46 | + | |
| 47 | + 9 | let f: bool = -a <= -1u8; |
| 48 | + | ^ |
24 | 49 | Error [ETYC0372008]: The value -1 is not a valid `u8`
|
25 | 50 | --> compiler-test:9:29
|
26 | 51 | |
|
27 | 52 | 9 | let f: bool = -a <= -1u8;
|
28 | 53 | | ^^^^
|
| 54 | +Error [ETYC0372117]: Expected a signed integer, group, or field but type `u8` was found. |
| 55 | + --> compiler-test:10:22 |
| 56 | + | |
| 57 | + 10 | let g: u8 = -a * -1u8; |
| 58 | + | ^ |
29 | 59 | Error [ETYC0372008]: The value -1 is not a valid `u8`
|
30 | 60 | --> compiler-test:10:26
|
31 | 61 | |
|
32 | 62 | 10 | let g: u8 = -a * -1u8;
|
33 | 63 | | ^^^^
|
| 64 | +Error [ETYC0372117]: Expected a signed integer, group, or field but type `u8` was found. |
| 65 | + --> compiler-test:11:22 |
| 66 | + | |
| 67 | + 11 | let h: u8 = -a ** -1u8; |
| 68 | + | ^ |
34 | 69 | Error [ETYC0372008]: The value -1 is not a valid `u8`
|
35 | 70 | --> compiler-test:11:27
|
36 | 71 | |
|
|
0 commit comments