]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/struct-field-type-including-single-colon.stderr
Auto merge of #106520 - ehuss:update-mdbook, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / struct-field-type-including-single-colon.stderr
1 error: found single colon in a struct field type path
2   --> $DIR/struct-field-type-including-single-colon.rs:9:11
3    |
4 LL |     a: foo:A,
5    |           ^
6    |
7 help: write a path separator here
8    |
9 LL |     a: foo::A,
10    |           ~~
11
12 error: expected `,`, or `}`, found `:`
13   --> $DIR/struct-field-type-including-single-colon.rs:9:11
14    |
15 LL | struct Foo {
16    |        --- while parsing this struct
17 LL |     a: foo:A,
18    |           ^
19
20 error: found single colon in a struct field type path
21   --> $DIR/struct-field-type-including-single-colon.rs:15:16
22    |
23 LL |     b: foo::bar:B,
24    |                ^
25    |
26 help: write a path separator here
27    |
28 LL |     b: foo::bar::B,
29    |                ~~
30
31 error: expected `,`, or `}`, found `:`
32   --> $DIR/struct-field-type-including-single-colon.rs:15:16
33    |
34 LL | struct Bar {
35    |        --- while parsing this struct
36 LL |     b: foo::bar:B,
37    |                ^
38
39 error: aborting due to 4 previous errors
40