diff options
Diffstat (limited to 'tests/ui/generics/single-colon-path-not-const-generics.rs')
-rw-r--r-- | tests/ui/generics/single-colon-path-not-const-generics.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/generics/single-colon-path-not-const-generics.rs b/tests/ui/generics/single-colon-path-not-const-generics.rs new file mode 100644 index 000000000..55a7ae0bb --- /dev/null +++ b/tests/ui/generics/single-colon-path-not-const-generics.rs @@ -0,0 +1,13 @@ +pub mod foo { + pub mod bar { + pub struct A; + } +} + +pub struct Foo { + a: Vec<foo::bar:A>, + //~^ ERROR expected + //~| HELP path separator +} + +fn main() {} |