type-alias-enum-variants-priority-3: describe the test.
This commit is contained in:
parent
fd44b7655b
commit
c0c48a6677
2 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {}
|
||||
| ^^^^^^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue