Skip to content

Commit bc43380

Browse files
author
Ngo Iok Ui
committed
Fix comments of toogeneris test
1 parent ef34e06 commit bc43380

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/test/ui/consts/issue-79137-toogeneric.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// The instrinsic call for variant count should exhaustively match on `tp_ty` and forbid
2-
// `ty::Projection`, `ty::Opaque`, `ty::Param`, `ty::Bound`, `ty::Placeholder` and `ty::Infer`
3-
// variant. This test checks that it will fail if it's too generic.
1+
// Test that `variant_count` only gets evaluated once the type is concrete enough.
42

53
#![feature(variant_count)]
64

src/test/ui/consts/issue-79137-toogeneric.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error: constant pattern depends on a generic parameter
2-
--> $DIR/issue-79137-toogeneric.rs:14:43
2+
--> $DIR/issue-79137-toogeneric.rs:12:43
33
|
44
LL | matches!(GetVariantCount::<T>::VALUE, GetVariantCount::<T>::VALUE)
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
66

77
error: constant pattern depends on a generic parameter
8-
--> $DIR/issue-79137-toogeneric.rs:14:43
8+
--> $DIR/issue-79137-toogeneric.rs:12:43
99
|
1010
LL | matches!(GetVariantCount::<T>::VALUE, GetVariantCount::<T>::VALUE)
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)