summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/struct-field-type-including-single-colon.stderr
blob: 4dd514480da404b9a18e2b2f8b008a93bd33987d (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
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 | struct Foo {
   |        --- while parsing this struct
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 | struct Bar {
   |        --- while parsing this struct
LL |     b: foo::bar:B,
   |                ^

error: aborting due to 4 previous errors