From 8b762c5537b3e7b223bec3a80ab45aa3c5fe7e40 Mon Sep 17 00:00:00 2001 From: Bastian Kauschke Date: Sun, 29 Mar 2020 18:34:42 +0200 Subject: [PATCH] prohibit_generics: update has_err for consts --- src/librustc_typeck/astconv.rs | 1 + 1 file changed, 1 insertion(+) 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") } };