]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/astconv.rs
Rollup merge of #53600 - varkor:expected-generic-arg-s, r=eddyb
[rust.git] / src / librustc_typeck / astconv.rs
index a528c8e9b4f96d26932851085cf648d88b9a6b9f..d0778a729adb0c39a49cfb58fd62830f54f115bc 100644 (file)
@@ -371,7 +371,7 @@ fn check_generic_arg_count(
                     quantifier,
                     bound,
                     kind,
-                    if required != 1 { "s" } else { "" },
+                    if bound != 1 { "s" } else { "" },
                 )
             };