/ tests / expectations / compiler / statements / expr_statement_fail.out
expr_statement_fail.out
 1  Error [ETYC0372053]: An expression statement must be a function call.
 2      --> compiler-test:9:9
 3       |
 4     9 |         a + b;
 5       |         ^^^^^^
 6  Error [ETYC0372053]: An expression statement must be a function call.
 7      --> compiler-test:10:9
 8       |
 9    10 |         flag ? a : b;
10       |         ^^^^^^^^^^^^^
11  Error [ETYC0372053]: An expression statement must be a function call.
12      --> compiler-test:11:9
13       |
14    11 |         foo.a;
15       |         ^^^^^^
16  Error [ETYC0372053]: An expression statement must be a function call.
17      --> compiler-test:12:9
18       |
19    12 |         Foo {
20       |         ^^^^^
21    13 |             a: a,
22       |             ^^^^^
23    14 |         };
24       |         ^^
25  Error [ETYC0372053]: An expression statement must be a function call.
26      --> compiler-test:15:9
27       |
28    15 |         a;
29       |         ^^
30  Error [ETYC0372053]: An expression statement must be a function call.
31      --> compiler-test:16:9
32       |
33    16 |         1u8;
34       |         ^^^^
35  Error [ETYC0372053]: An expression statement must be a function call.
36      --> compiler-test:17:9
37       |
38    17 |         -1i8;
39       |         ^^^^^
40  Error [ETYC0372053]: An expression statement must be a function call.
41      --> compiler-test:18:9
42       |
43    18 |         1field;
44       |         ^^^^^^^