rust/tests/ui/rfcs/rfc-3348-c-string-literals/no-nuls.stderr

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

195 lines
4.4 KiB
Plaintext
Raw Normal View History

2023-07-04 12:40:48 -05:00
error: prefix `c` is unknown
--> $DIR/no-nuls.rs:7:5
2023-03-06 01:10:23 -06:00
|
LL | c"\0";
2023-07-04 12:40:48 -05:00
| ^ unknown prefix
|
= note: prefixed identifiers and literals are reserved since Rust 2021
help: consider inserting whitespace here
|
LL | c "\0";
| +
2023-03-06 01:10:23 -06:00
2023-07-04 12:40:48 -05:00
error: prefix `c` is unknown
--> $DIR/no-nuls.rs:10:5
2023-03-06 01:10:23 -06:00
|
LL | c"\u{00}";
2023-07-04 12:40:48 -05:00
| ^ unknown prefix
|
= note: prefixed identifiers and literals are reserved since Rust 2021
help: consider inserting whitespace here
|
LL | c "\u{00}";
| +
2023-03-06 01:10:23 -06:00
2023-07-04 12:40:48 -05:00
error: prefix `c` is unknown
--> $DIR/no-nuls.rs:13:5
2023-03-06 01:10:23 -06:00
|
LL | c"";
2023-07-04 12:40:48 -05:00
| ^ unknown prefix
|
= note: prefixed identifiers and literals are reserved since Rust 2021
help: consider inserting whitespace here
|
LL | c "";
| +
2023-03-06 01:10:23 -06:00
2023-07-04 12:40:48 -05:00
error: prefix `c` is unknown
--> $DIR/no-nuls.rs:16:5
2023-03-06 01:10:23 -06:00
|
LL | c"\x00";
2023-07-04 12:40:48 -05:00
| ^ unknown prefix
|
= note: prefixed identifiers and literals are reserved since Rust 2021
help: consider inserting whitespace here
|
LL | c "\x00";
| +
2023-03-06 01:10:23 -06:00
2023-07-04 12:40:48 -05:00
error: prefix `cr` is unknown
--> $DIR/no-nuls.rs:19:5
2023-03-06 01:10:23 -06:00
|
LL | cr"";
2023-07-04 12:40:48 -05:00
| ^^ unknown prefix
|
= note: prefixed identifiers and literals are reserved since Rust 2021
help: consider inserting whitespace here
|
LL | cr "";
| +
error: prefix `c` is unknown
--> $DIR/no-nuls.rs:29:5
|
LL | c"\0";
| ^ unknown prefix
|
= note: prefixed identifiers and literals are reserved since Rust 2021
help: consider inserting whitespace here
|
LL | c "\0";
| +
error: prefix `c` is unknown
--> $DIR/no-nuls.rs:30:5
|
LL | c"\u{00}";
| ^ unknown prefix
|
= note: prefixed identifiers and literals are reserved since Rust 2021
help: consider inserting whitespace here
|
LL | c "\u{00}";
| +
error: prefix `c` is unknown
--> $DIR/no-nuls.rs:31:5
|
LL | c"";
| ^ unknown prefix
|
= note: prefixed identifiers and literals are reserved since Rust 2021
help: consider inserting whitespace here
|
LL | c "";
| +
error: prefix `c` is unknown
--> $DIR/no-nuls.rs:32:5
|
LL | c"\x00";
| ^ unknown prefix
|
= note: prefixed identifiers and literals are reserved since Rust 2021
help: consider inserting whitespace here
|
LL | c "\x00";
| +
error: prefix `cr` is unknown
--> $DIR/no-nuls.rs:33:5
|
LL | cr"";
| ^^ unknown prefix
|
= note: prefixed identifiers and literals are reserved since Rust 2021
help: consider inserting whitespace here
|
LL | cr "";
| +
error: prefix `c` is unknown
--> $DIR/no-nuls.rs:35:12
|
LL | empty!(c"\0");
| ^ unknown prefix
|
= note: prefixed identifiers and literals are reserved since Rust 2021
help: consider inserting whitespace here
|
LL | empty!(c "\0");
| +
error: prefix `c` is unknown
--> $DIR/no-nuls.rs:36:12
|
LL | empty!(c"\u{00}");
| ^ unknown prefix
|
= note: prefixed identifiers and literals are reserved since Rust 2021
help: consider inserting whitespace here
|
LL | empty!(c "\u{00}");
| +
error: prefix `c` is unknown
--> $DIR/no-nuls.rs:37:12
|
LL | empty!(c"");
| ^ unknown prefix
|
= note: prefixed identifiers and literals are reserved since Rust 2021
help: consider inserting whitespace here
|
LL | empty!(c "");
| +
error: prefix `c` is unknown
--> $DIR/no-nuls.rs:38:12
|
LL | empty!(c"\x00");
| ^ unknown prefix
|
= note: prefixed identifiers and literals are reserved since Rust 2021
help: consider inserting whitespace here
|
LL | empty!(c "\x00");
| +
error: prefix `cr` is unknown
--> $DIR/no-nuls.rs:39:12
|
LL | empty!(cr"");
| ^^ unknown prefix
|
= note: prefixed identifiers and literals are reserved since Rust 2021
help: consider inserting whitespace here
|
LL | empty!(cr "");
| +
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `"\0"`
--> $DIR/no-nuls.rs:7:6
|
LL | c"\0";
| ^^^^ expected one of 8 possible tokens
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `"\0"`
--> $DIR/no-nuls.rs:29:6
|
LL | c"\0";
| ^^^^ expected one of 8 possible tokens
2023-03-06 01:10:23 -06:00
2023-07-04 12:40:48 -05:00
error: aborting due to 17 previous errors
2023-03-06 01:10:23 -06:00