Skip to content

Commit 8b762c5

Browse files
authored
prohibit_generics: update has_err for consts
1 parent 8ab82b8 commit 8b762c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_typeck/astconv.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2440,6 +2440,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
24402440
continue;
24412441
}
24422442
err_for_ct = true;
2443+
has_err = true;
24432444
(ct.span, "const")
24442445
}
24452446
};

0 commit comments

Comments
 (0)