diff options
Diffstat (limited to 'tests/ui/consts/issue-73976-polymorphic.stderr')
-rw-r--r-- | tests/ui/consts/issue-73976-polymorphic.stderr | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/ui/consts/issue-73976-polymorphic.stderr b/tests/ui/consts/issue-73976-polymorphic.stderr new file mode 100644 index 000000000..442ad23f2 --- /dev/null +++ b/tests/ui/consts/issue-73976-polymorphic.stderr @@ -0,0 +1,26 @@ +error: constant pattern depends on a generic parameter + --> $DIR/issue-73976-polymorphic.rs:20:37 + | +LL | matches!(GetTypeId::<T>::VALUE, GetTypeId::<T>::VALUE) + | ^^^^^^^^^^^^^^^^^^^^^ + +error: constant pattern depends on a generic parameter + --> $DIR/issue-73976-polymorphic.rs:32:42 + | +LL | matches!(GetTypeNameLen::<T>::VALUE, GetTypeNameLen::<T>::VALUE) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +error: constant pattern depends on a generic parameter + --> $DIR/issue-73976-polymorphic.rs:20:37 + | +LL | matches!(GetTypeId::<T>::VALUE, GetTypeId::<T>::VALUE) + | ^^^^^^^^^^^^^^^^^^^^^ + +error: constant pattern depends on a generic parameter + --> $DIR/issue-73976-polymorphic.rs:32:42 + | +LL | matches!(GetTypeNameLen::<T>::VALUE, GetTypeNameLen::<T>::VALUE) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +error: aborting due to 4 previous errors + |