rust/tests/ui/parser/old-suffixes-are-really-forbidden.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
562 B
Plaintext
Raw Normal View History

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