/ tests / expectations / compiler / structs / duplicate_struct_variable.out
duplicate_struct_variable.out
 1  Error [ETYC0372015]: Struct field `x` is already declared.
 2      --> compiler-test:6:9
 3       |
 4     5 |           x: u32,
 5       |           ^^^^^^ `x` first declared here
 6     6 |           x: u32,
 7       |           ^^^^^^ struct field already declared
 8  Error [ETYC0372015]: Struct field `name` is already declared.
 9      --> compiler-test:14:9
10       |
11    11 |           name: field,
12       |           ^^^^^^^^^^^ `name` first declared here
13     ...
14    14 |           name: field,
15       |           ^^^^^^^^^^^ struct field already declared
16  Error [ETYC0372015]: Struct field `id` is already declared.
17      --> compiler-test:21:9
18       |
19    19 |           id: u32,
20       |           ^^^^^^^ `id` first declared here
21    20 |
22    21 |           id: u32,
23       |           ^^^^^^^ struct field already declared
24  Error [ETYC0372015]: Struct field `val` is already declared.
25      --> compiler-test:22:9
26       |
27    20 |           val: u64,
28       |           ^^^^^^^^ `val` first declared here
29    21 |
30    22 |           val: u64,
31       |           ^^^^^^^^ struct field already declared
32  Error [ETYC0372015]: Struct field `host` is already declared.
33      --> compiler-test:36:9
34       |
35    27 |           host: field,
36       |           ^^^^^^^^^^^ `host` first declared here
37     ...
38    36 |           host: field,
39       |           ^^^^^^^^^^^ struct field already declared
40  Error [ETYC0372083]: A program must have at least one transition function.
41      --> compiler-test:2:9
42       |
43     2 | program test.alpha {
44       |         ^^^^^^^^^