2019-10-27 18:29:23 -05:00
|
|
|
error: suffixes on a string literal are invalid
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/bad-lit-suffixes.rs:2:5
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | "C"suffix
|
2019-03-26 14:09:13 -05:00
|
|
|
| ^^^^^^^^^ invalid suffix `suffix`
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2019-10-27 18:29:23 -05:00
|
|
|
error: suffixes on a string literal are invalid
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/bad-lit-suffixes.rs:6:5
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | "C"suffix
|
2019-03-26 14:09:13 -05:00
|
|
|
| ^^^^^^^^^ invalid suffix `suffix`
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2019-03-26 14:09:13 -05:00
|
|
|
error: suffixes on a string literal are invalid
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/bad-lit-suffixes.rs:10:5
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | ""suffix;
|
2019-03-26 14:09:13 -05:00
|
|
|
| ^^^^^^^^ invalid suffix `suffix`
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2019-03-26 14:09:13 -05:00
|
|
|
error: suffixes on a byte string literal are invalid
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/bad-lit-suffixes.rs:11:5
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | b""suffix;
|
2019-03-26 14:09:13 -05:00
|
|
|
| ^^^^^^^^^ invalid suffix `suffix`
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2019-03-26 14:09:13 -05:00
|
|
|
error: suffixes on a string literal are invalid
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/bad-lit-suffixes.rs:12:5
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | r#""#suffix;
|
2019-03-26 14:09:13 -05:00
|
|
|
| ^^^^^^^^^^^ invalid suffix `suffix`
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2019-03-26 14:09:13 -05:00
|
|
|
error: suffixes on a byte string literal are invalid
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/bad-lit-suffixes.rs:13:5
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | br#""#suffix;
|
2019-03-26 14:09:13 -05:00
|
|
|
| ^^^^^^^^^^^^ invalid suffix `suffix`
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2019-03-26 14:09:13 -05:00
|
|
|
error: suffixes on a char literal are invalid
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/bad-lit-suffixes.rs:14:5
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | 'a'suffix;
|
2019-03-26 14:09:13 -05:00
|
|
|
| ^^^^^^^^^ invalid suffix `suffix`
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2019-03-26 14:09:13 -05:00
|
|
|
error: suffixes on a byte literal are invalid
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/bad-lit-suffixes.rs:15:5
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | b'a'suffix;
|
2019-03-26 14:09:13 -05:00
|
|
|
| ^^^^^^^^^^ invalid suffix `suffix`
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
error: invalid width `1024` for integer literal
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/bad-lit-suffixes.rs:17:5
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | 1234u1024;
|
2018-10-20 15:36:17 -05:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: valid widths are 8, 16, 32, 64 and 128
|
|
|
|
|
|
|
|
error: invalid width `1024` for integer literal
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/bad-lit-suffixes.rs:18:5
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | 1234i1024;
|
2018-10-20 15:36:17 -05:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: valid widths are 8, 16, 32, 64 and 128
|
|
|
|
|
|
|
|
error: invalid width `1024` for float literal
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/bad-lit-suffixes.rs:19:5
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | 1234f1024;
|
2018-10-20 15:36:17 -05:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: valid widths are 32 and 64
|
|
|
|
|
|
|
|
error: invalid width `1024` for float literal
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/bad-lit-suffixes.rs:20:5
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | 1234.5f1024;
|
2018-10-20 15:36:17 -05:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: valid widths are 32 and 64
|
|
|
|
|
2019-05-18 14:44:09 -05:00
|
|
|
error: invalid suffix `suffix` for integer literal
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/bad-lit-suffixes.rs:22:5
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | 1234suffix;
|
2019-01-12 01:37:49 -06:00
|
|
|
| ^^^^^^^^^^ invalid suffix `suffix`
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
= help: the suffix must be one of the integral types (`u32`, `isize`, etc)
|
|
|
|
|
2019-05-18 14:44:09 -05:00
|
|
|
error: invalid suffix `suffix` for integer literal
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/bad-lit-suffixes.rs:23:5
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | 0b101suffix;
|
2019-01-12 01:37:49 -06:00
|
|
|
| ^^^^^^^^^^^ invalid suffix `suffix`
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
= help: the suffix must be one of the integral types (`u32`, `isize`, etc)
|
|
|
|
|
|
|
|
error: invalid suffix `suffix` for float literal
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/bad-lit-suffixes.rs:24:5
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | 1.0suffix;
|
2019-01-12 01:37:49 -06:00
|
|
|
| ^^^^^^^^^ invalid suffix `suffix`
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
= help: valid suffixes are `f32` and `f64`
|
|
|
|
|
|
|
|
error: invalid suffix `suffix` for float literal
|
2019-05-31 15:50:04 -05:00
|
|
|
--> $DIR/bad-lit-suffixes.rs:25:5
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | 1.0e10suffix;
|
2019-01-12 01:37:49 -06:00
|
|
|
| ^^^^^^^^^^^^ invalid suffix `suffix`
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
= help: valid suffixes are `f32` and `f64`
|
|
|
|
|
|
|
|
error: aborting due to 16 previous errors
|
|
|
|
|