rust/src/test/ui/old-suffixes-are-really-forbidden.stderr

19 lines
600 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error: invalid suffix `is` for numeric literal
2018-12-25 09:56:47 -06:00
--> $DIR/old-suffixes-are-really-forbidden.rs:2:13
2018-08-08 07:28:26 -05:00
|
LL | let a = 1_is; //~ ERROR invalid suffix
2019-01-12 01:37:49 -06:00
| ^^^^ invalid suffix `is`
2018-08-08 07:28:26 -05:00
|
= help: the suffix must be one of the integral types (`u32`, `isize`, etc)
error: invalid suffix `us` for numeric literal
2018-12-25 09:56:47 -06:00
--> $DIR/old-suffixes-are-really-forbidden.rs:3:13
2018-08-08 07:28:26 -05:00
|
LL | let b = 2_us; //~ ERROR invalid suffix
2019-01-12 01:37:49 -06:00
| ^^^^ invalid suffix `us`
2018-08-08 07:28:26 -05:00
|
= help: the suffix must be one of the integral types (`u32`, `isize`, etc)
error: aborting due to 2 previous errors