Clarify that repeat count must be positive
This commit is contained in:
parent
31731511c0
commit
9702348957
3 changed files with 9 additions and 9 deletions
|
@ -154,7 +154,7 @@ pub fn expand_concat_bytes(
|
|||
}
|
||||
}
|
||||
} else {
|
||||
cx.span_err(count.value.span, "repeat count is not a number");
|
||||
cx.span_err(count.value.span, "repeat count is not a positive number");
|
||||
}
|
||||
}
|
||||
ast::ExprKind::Lit(ref lit) => match lit.kind {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue