]> git.proxmox.com Git - rustc.git/blob - src/test/ui/suggestions/struct-field-type-including-single-colon.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / suggestions / struct-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() {}