Added regression test for using generic parameters on modules.

This commit is contained in:
Alexander Regueiro
2018-12-18 00:40:22 +00:00
parent 5a36f9e6e1
commit 8eb1a9e4e7
35 changed files with 306 additions and 279 deletions

View File

@@ -0,0 +1,9 @@
error[E0109]: type arguments are not allowed on this entity
--> $DIR/mod-subitem-as-enum-variant.rs:8:11
|
LL | Mod::<i32>::FakeVariant(0);
| ^^^ type argument not allowed
error: aborting due to previous error
For more information about this error, try `rustc --explain E0109`.