char
not char
This commit is contained in:
parent
8eb42ba0fb
commit
94c789b275
15 changed files with 47 additions and 46 deletions
|
@ -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)>| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue