diff --git a/src/librustc_typeck/astconv.rs b/src/librustc_typeck/astconv.rs index 07630d7969e..5f444a5fd2d 100644 --- a/src/librustc_typeck/astconv.rs +++ b/src/librustc_typeck/astconv.rs @@ -2440,6 +2440,7 @@ pub fn prohibit_generics<'a, T: IntoIterator>>( continue; } err_for_ct = true; + has_err = true; (ct.span, "const") } };