Search for generic parameters when finding non-structural_match types

This commit is contained in:
varkor 2019-10-20 18:17:42 +01:00
parent bbd53deaeb
commit 133cd2cfaf
5 changed files with 42 additions and 26 deletions

View file

@ -6,7 +6,7 @@ LL | #![feature(const_generics)]
|
= note: `#[warn(incomplete_features)]` on by default
error[E0739]: the types of const generic parameters must derive `PartialEq` and `Eq`
error[E0740]: the types of const generic parameters must derive `PartialEq` and `Eq`
--> $DIR/forbid-non-structural_match-types.rs:11:19
|
LL | struct D<const X: C>;
@ -14,4 +14,4 @@ LL | struct D<const X: C>;
error: aborting due to previous error
For more information about this error, try `rustc --explain E0739`.
For more information about this error, try `rustc --explain E0740`.