Rollup merge of #105039 - nnethercote:fix-104769, r=petrochenkov
Fix an ICE parsing a malformed literal in `concat_bytes!`. Fixes #104769. r? `@petrochenkov`
This commit is contained in:
commit
084bbcc2ca
3 changed files with 29 additions and 1 deletions
|
|
@ -0,0 +1,8 @@
|
|||
#![feature(concat_bytes)]
|
||||
|
||||
fn main() {
|
||||
concat_bytes!(7Y);
|
||||
//~^ ERROR invalid suffix `Y` for number literal
|
||||
concat_bytes!(888888888888888888888888888888888888888);
|
||||
//~^ ERROR integer literal is too large
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
error: invalid suffix `Y` for number literal
|
||||
--> $DIR/issue-104769-concat_bytes-invalid-literal.rs:4:19
|
||||
|
|
||||
LL | concat_bytes!(7Y);
|
||||
| ^^ invalid suffix `Y`
|
||||
|
|
||||
= help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.)
|
||||
|
||||
error: integer literal is too large
|
||||
--> $DIR/issue-104769-concat_bytes-invalid-literal.rs:6:19
|
||||
|
|
||||
LL | concat_bytes!(888888888888888888888888888888888888888);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue