Skip to content

Commit c0c48a6

Browse files
committed
type-alias-enum-variants-priority-3: describe the test.
1 parent fd44b76 commit c0c48a6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/test/ui/type-alias-enum-variants/type-alias-enum-variants-priority-3.rs

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

src/test/ui/type-alias-enum-variants/type-alias-enum-variants-priority-3.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: expected type, found variant `V`
2-
--> $DIR/type-alias-enum-variants-priority-3.rs:5:15
2+
--> $DIR/type-alias-enum-variants-priority-3.rs:8:15
33
|
44
LL | fn check() -> <E>::V {}
55
| ^^^^^^

0 commit comments

Comments
 (0)