summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/struct-field-type-including-single-colon.stderr
blob: 189759d64fc4ee59d24e8e21d0121bd81e1ffc9c (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
error: found single colon in a struct field type path
  --> $DIR/struct-field-type-including-single-colon.rs:9:11
   |
LL |     a: foo:A,
   |           ^
   |
help: write a path separator here
   |
LL |     a: foo::A,
   |           ~~

error: expected `,`, or `}`, found `:`
  --> $DIR/struct-field-type-including-single-colon.rs:9:11
   |
LL |     a: foo:A,
   |           ^

error: found single colon in a struct field type path
  --> $DIR/struct-field-type-including-single-colon.rs:15:16
   |
LL |     b: foo::bar:B,
   |                ^
   |
help: write a path separator here
   |
LL |     b: foo::bar::B,
   |                ~~

error: expected `,`, or `}`, found `:`
  --> $DIR/struct-field-type-including-single-colon.rs:15:16
   |
LL |     b: foo::bar:B,
   |                ^

error: aborting due to 4 previous errors