type-alias-enum-variants-priority-3: describe the test.

This commit is contained in:
Mazdak Farrokhzad 2019-06-09 03:59:18 +02:00
parent fd44b7655b
commit c0c48a6677
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
// Check that the compiler will resolve `<E>::V` to the variant `V` in the type namespace
// but will reject this because `enum` variants do not exist in the type namespace.
enum E {
V
}

View File

@ -1,5 +1,5 @@
error: expected type, found variant `V`
--> $DIR/type-alias-enum-variants-priority-3.rs:5:15
--> $DIR/type-alias-enum-variants-priority-3.rs:8:15
|
LL | fn check() -> <E>::V {}
| ^^^^^^