Skip to content

Commit

Permalink
revert error message changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gnzlbg committed Sep 21, 2019
1 parent d434496 commit 9d4053f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_mir/transform/qualify_consts.rs
Expand Up @@ -1416,7 +1416,7 @@ impl<'a, 'tcx> Visitor<'tcx> for Checker<'a, 'tcx> {
if self.mode.requires_const_checking() && !unleash_miri {
let mut err = self.tcx.sess.struct_span_err(
self.span,
"function pointers in `const fn` are unstable",
"function pointers are not allowed in const fn"
);
err.emit();
}
Expand Down

0 comments on commit 9d4053f

Please sign in to comment.