summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/struct-default-values-and-missing-field-separator.stderr
blob: 7f16ebcfc3ace26b8c82a3dd1eadb84c1635254d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
error: default values on `struct` fields aren't supported
  --> $DIR/struct-default-values-and-missing-field-separator.rs:9:16
   |
LL |     field1: i32 = 42,
   |                ^^^^^ help: remove this unsupported default value

error: default values on `struct` fields aren't supported
  --> $DIR/struct-default-values-and-missing-field-separator.rs:10:14
   |
LL |     field2: E = E::A,
   |              ^^^^^^^ help: remove this unsupported default value

error: default values on `struct` fields aren't supported
  --> $DIR/struct-default-values-and-missing-field-separator.rs:11:16
   |
LL |     field3: i32 = 1 + 2,
   |                ^^^^^^^^ help: remove this unsupported default value

error: default values on `struct` fields aren't supported
  --> $DIR/struct-default-values-and-missing-field-separator.rs:12:16
   |
LL |     field4: i32 = { 1 + 2 },
   |                ^^^^^^^^^^^^ help: remove this unsupported default value

error: default values on `struct` fields aren't supported
  --> $DIR/struct-default-values-and-missing-field-separator.rs:13:14
   |
LL |     field5: E = foo(42),
   |              ^^^^^^^^^^ help: remove this unsupported default value

error: default values on `struct` fields aren't supported
  --> $DIR/struct-default-values-and-missing-field-separator.rs:14:14
   |
LL |     field6: E = { foo(42) },
   |              ^^^^^^^^^^^^^^ help: remove this unsupported default value

error: expected `,`, or `}`, found `field2`
  --> $DIR/struct-default-values-and-missing-field-separator.rs:18:16
   |
LL |     field1: i32
   |                ^ help: try adding a comma: `,`

error: expected `,`, or `}`, found `field3`
  --> $DIR/struct-default-values-and-missing-field-separator.rs:19:14
   |
LL |     field2: E
   |              ^ help: try adding a comma: `,`

error: default values on `struct` fields aren't supported
  --> $DIR/struct-default-values-and-missing-field-separator.rs:20:16
   |
LL |     field3: i32 = 1 + 2,
   |                ^^^^^^^^ help: remove this unsupported default value

error: default values on `struct` fields aren't supported
  --> $DIR/struct-default-values-and-missing-field-separator.rs:21:16
   |
LL |     field4: i32 = { 1 + 2 },
   |                ^^^^^^^^^^^^ help: remove this unsupported default value

error: default values on `struct` fields aren't supported
  --> $DIR/struct-default-values-and-missing-field-separator.rs:22:14
   |
LL |     field5: E = foo(42),
   |              ^^^^^^^^^^ help: remove this unsupported default value

error: default values on `struct` fields aren't supported
  --> $DIR/struct-default-values-and-missing-field-separator.rs:23:14
   |
LL |     field6: E = { foo(42) },
   |              ^^^^^^^^^^^^^^ help: remove this unsupported default value

error: expected `:`, found `=`
  --> $DIR/struct-default-values-and-missing-field-separator.rs:27:12
   |
LL |     field1 = i32,
   |            ^
   |            |
   |            expected `:`
   |            help: field names and their types are separated with `:`

error: expected `:`, found `;`
  --> $DIR/struct-default-values-and-missing-field-separator.rs:28:11
   |
LL |     field2; E,
   |           ^
   |           |
   |           expected `:`
   |           help: field names and their types are separated with `:`

error: aborting due to 14 previous errors