]> git.proxmox.com Git - rustc.git/blobdiff - src/librustc_typeck/variance/constraints.rs
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / src / librustc_typeck / variance / constraints.rs
index eee0f764373a4d2acc864125e22d16cb4da1be93..cae09267994e3fe94af54dc80e41d95cedb4c0a1 100644 (file)
@@ -339,7 +339,7 @@ impl<'a, 'tcx> ConstraintContext<'a, 'tcx> {
                 self.add_constraints_from_sig(current, sig, variance);
             }
 
-            ty::Error => {
+            ty::Error(_) => {
                 // we encounter this when walking the trait references for object
                 // types, where we use Error as the Self type
             }