]> git.proxmox.com Git - rustc.git/blobdiff - src/librustc/traits/on_unimplemented.rs
New upstream version 1.23.0+dfsg1
[rustc.git] / src / librustc / traits / on_unimplemented.rs
index 94f6efcad4adc7efdee2cd0ed6e47edf74f229f4..16e200d56f9fbe3c4c584225cb3f823b25c83b9a 100644 (file)
@@ -254,7 +254,7 @@ impl<'a, 'gcx, 'tcx> OnUnimplementedFormatString {
                         }
                     },
                     // `{:1}` and `{}` are not to be used
-                    Position::ArgumentIs(_) => {
+                    Position::ArgumentIs(_) | Position::ArgumentImplicitlyIs(_) => {
                         span_err!(tcx.sess, span, E0231,
                                   "only named substitution \
                                    parameters are allowed");