rust/tests/ui/lexer/lex-bad-numeric-literals.stderr

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

170 lines
4.4 KiB
Plaintext
Raw Normal View History

2018-10-20 20:36:17 +00:00
error: octal float literal is not supported
--> $DIR/lex-bad-numeric-literals.rs:4:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 0o1.0;
2018-10-20 20:36:17 +00:00
| ^^^^^
error: octal float literal is not supported
--> $DIR/lex-bad-numeric-literals.rs:6:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 0o3.0f32;
2018-10-20 20:36:17 +00:00
| ^^^^^
error: octal float literal is not supported
--> $DIR/lex-bad-numeric-literals.rs:7:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 0o4e4;
2018-10-20 20:36:17 +00:00
| ^^^^^
error: octal float literal is not supported
--> $DIR/lex-bad-numeric-literals.rs:8:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 0o5.0e5;
2018-10-20 20:36:17 +00:00
| ^^^^^^^
error: octal float literal is not supported
--> $DIR/lex-bad-numeric-literals.rs:9:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 0o6e6f32;
2018-10-20 20:36:17 +00:00
| ^^^^^
error: octal float literal is not supported
--> $DIR/lex-bad-numeric-literals.rs:10:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 0o7.0e7f64;
2018-10-20 20:36:17 +00:00
| ^^^^^^^
error: hexadecimal float literal is not supported
--> $DIR/lex-bad-numeric-literals.rs:11:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 0x8.0e+9;
2018-10-20 20:36:17 +00:00
| ^^^^^^^^
error: hexadecimal float literal is not supported
--> $DIR/lex-bad-numeric-literals.rs:12:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 0x9.0e-9;
2018-10-20 20:36:17 +00:00
| ^^^^^^^^
2020-07-03 22:15:08 +00:00
error[E0768]: no valid digits found for number
--> $DIR/lex-bad-numeric-literals.rs:13:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 0o;
2018-10-20 20:36:17 +00:00
| ^^
error: expected at least one digit in exponent
--> $DIR/lex-bad-numeric-literals.rs:14:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 1e+;
| ^^^
2018-10-20 20:36:17 +00:00
error: hexadecimal float literal is not supported
--> $DIR/lex-bad-numeric-literals.rs:15:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 0x539.0;
2018-10-20 20:36:17 +00:00
| ^^^^^^^
2020-07-03 22:15:08 +00:00
error[E0768]: no valid digits found for number
--> $DIR/lex-bad-numeric-literals.rs:26:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 0x;
2018-10-20 20:36:17 +00:00
| ^^
2020-07-03 22:15:08 +00:00
error[E0768]: no valid digits found for number
--> $DIR/lex-bad-numeric-literals.rs:27:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 0xu32;
2018-10-20 20:36:17 +00:00
| ^^
2020-07-03 22:15:08 +00:00
error[E0768]: no valid digits found for number
--> $DIR/lex-bad-numeric-literals.rs:28:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 0ou32;
2018-10-20 20:36:17 +00:00
| ^^
2020-07-03 22:15:08 +00:00
error[E0768]: no valid digits found for number
--> $DIR/lex-bad-numeric-literals.rs:29:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 0bu32;
2018-10-20 20:36:17 +00:00
| ^^
2020-07-03 22:15:08 +00:00
error[E0768]: no valid digits found for number
--> $DIR/lex-bad-numeric-literals.rs:30:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 0b;
2018-10-20 20:36:17 +00:00
| ^^
error: octal float literal is not supported
--> $DIR/lex-bad-numeric-literals.rs:32:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 0o123.456;
2018-10-20 20:36:17 +00:00
| ^^^^^^^^^
error: binary float literal is not supported
--> $DIR/lex-bad-numeric-literals.rs:34:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 0b111.101;
2018-10-20 20:36:17 +00:00
| ^^^^^^^^^
error: octal float literal is not supported
--> $DIR/lex-bad-numeric-literals.rs:5:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 0o2f32;
| ^^^^^^ not supported
2018-10-20 20:36:17 +00:00
error: integer literal is too large
--> $DIR/lex-bad-numeric-literals.rs:16:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 9900000000000000000000000000999999999999999999999999999999;
2018-10-20 20:36:17 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: value exceeds limit of `340282366920938463463374607431768211455`
2018-10-20 20:36:17 +00:00
error: integer literal is too large
--> $DIR/lex-bad-numeric-literals.rs:18:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 9900000000000000000000000000999999999999999999999999999999;
2018-10-20 20:36:17 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: value exceeds limit of `340282366920938463463374607431768211455`
error: integer literal is too large
--> $DIR/lex-bad-numeric-literals.rs:20:5
|
LL | 0b111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111110;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: value exceeds limit of `0b11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111`
error: integer literal is too large
--> $DIR/lex-bad-numeric-literals.rs:22:5
|
LL | 0o37777777777777777777777777777777777777777770;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: value exceeds limit of `0o3777777777777777777777777777777777777777777`
error: integer literal is too large
--> $DIR/lex-bad-numeric-literals.rs:24:5
|
LL | 0xffffffffffffffffffffffffffffffff0;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: value exceeds limit of `0xffffffffffffffffffffffffffffffff`
2018-10-20 20:36:17 +00:00
error: octal float literal is not supported
--> $DIR/lex-bad-numeric-literals.rs:31:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 0o123f64;
| ^^^^^^^^ not supported
2018-10-20 20:36:17 +00:00
error: binary float literal is not supported
--> $DIR/lex-bad-numeric-literals.rs:33:5
2018-10-20 20:36:17 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 0b101f64;
| ^^^^^^^^ not supported
2018-10-20 20:36:17 +00:00
error: aborting due to 26 previous errors
2018-10-20 20:36:17 +00:00
2020-07-03 22:15:08 +00:00
For more information about this error, try `rustc --explain E0768`.