Search for generic parameters when finding non-structural_match types
This commit is contained in:
parent
bbd53deaeb
commit
133cd2cfaf
5 changed files with 42 additions and 26 deletions
|
|
@ -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`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue