]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/const-generics/forbid-non-structural_match-types.rs
Make the `structural_match` error diagnostic for const generics clearer
[rust.git] / src / test / ui / const-generics / forbid-non-structural_match-types.rs
index 7bc4f3986eb754ba7160739f6dadc49142f7282b..a30cdc3efdf436c92d6387905c67bb182c83b222 100644 (file)
@@ -8,6 +8,6 @@
 
 struct C;
 
-struct D<const X: C>; //~ ERROR the types of const generic parameters must derive
+struct D<const X: C>; //~ ERROR `C` must be annotated with `#[derive(PartialEq, Eq)]`
 
 fn main() {}