]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/sturct-field-type-including-single-colon.rs
suggest using double colon when using single colon in struct field type path
[rust.git] / src / test / ui / suggestions / sturct-field-type-including-single-colon.rs
1 mod foo {
2     struct A;
3     mod bar {
4         struct B;
5     }
6 }
7
8 struct Foo {
9     a: foo:A,
10     //~^ ERROR found single colon in a struct field type path
11     //~| expected `,`, or `}`, found `:`
12 }
13
14 struct Bar {
15     b: foo::bar:B,
16     //~^ ERROR found single colon in a struct field type path
17     //~| expected `,`, or `}`, found `:`
18 }
19
20 fn main() {}