rust/tests/ui/rfcs/rfc-3348-c-string-literals/no-nuls.stderr
2023-07-05 13:11:17 +02:00

195 lines
4.4 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

error: prefix `c` is unknown
--> $DIR/no-nuls.rs:7: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:10: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:13: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:16: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:19: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: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
error: aborting due to 17 previous errors