diff options
Diffstat (limited to 'src/test/ui/suggestions/struct-field-type-including-single-colon.rs')
-rw-r--r-- | src/test/ui/suggestions/struct-field-type-including-single-colon.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/ui/suggestions/struct-field-type-including-single-colon.rs b/src/test/ui/suggestions/struct-field-type-including-single-colon.rs new file mode 100644 index 000000000..b7ad6d996 --- /dev/null +++ b/src/test/ui/suggestions/struct-field-type-including-single-colon.rs @@ -0,0 +1,20 @@ +mod foo { + struct A; + mod bar { + struct B; + } +} + +struct Foo { + a: foo:A, + //~^ ERROR found single colon in a struct field type path + //~| expected `,`, or `}`, found `:` +} + +struct Bar { + b: foo::bar:B, + //~^ ERROR found single colon in a struct field type path + //~| expected `,`, or `}`, found `:` +} + +fn main() {} |