1
Fork 0

char not char

This commit is contained in:
varkor 2020-09-15 20:34:58 +01:00
parent 8eb42ba0fb
commit 94c789b275
15 changed files with 47 additions and 46 deletions

View file

@ -495,7 +495,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
self.tcx.sess,
span,
E0029,
"only char and numeric types are allowed in range patterns"
"only `char` and numeric types are allowed in range patterns"
);
let msg = |ty| format!("this is of type `{}` but it should be `char` or numeric", ty);
let mut one_side_err = |first_span, first_ty, second: Option<(bool, Ty<'tcx>, Span)>| {