]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/const_in_pattern/custom-eq-branch-warn.stderr
Use correct type in diagnostics again
[rust.git] / src / test / ui / consts / const_in_pattern / custom-eq-branch-warn.stderr
index fd6732195e49411793415288a6b07b0a63ef1f15..e51d6f916498ef4cb36f416d7a7feba1afa7fdb7 100644 (file)
@@ -1,4 +1,4 @@
-warning: to use a constant of type `Foo` in a pattern, the constant's initializer must be trivial or all types in the constant must be annotated with `#[derive(PartialEq, Eq)]`
+warning: to use a constant of type `CustomEq` in a pattern, the constant's initializer must be trivial or `CustomEq` must be annotated with `#[derive(PartialEq, Eq)]`
   --> $DIR/custom-eq-branch-warn.rs:29:9
    |
 LL |         BAR_BAZ => panic!(),