]> git.proxmox.com Git - rustc.git/blobdiff - tests/ui/rfc-1445-restrict-constants-in-patterns/match-forbidden-without-eq.stderr
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / rfc-1445-restrict-constants-in-patterns / match-forbidden-without-eq.stderr
index 616ed9e484b7862cc34e90df1de5481e7babc70c..1c4fb914688f62265a2b1b06c6dcc7b922c86d3a 100644 (file)
@@ -3,6 +3,9 @@ error: to use a constant of type `Foo` in a pattern, `Foo` must be annotated wit
    |
 LL |         FOO => { }
    |         ^^^
+   |
+   = note: the traits must be derived, manual `impl`s are not sufficient
+   = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details
 
 warning: floating-point types cannot be used in patterns
   --> $DIR/match-forbidden-without-eq.rs:18:9