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.

33 lines
674 B
Plaintext
Raw Normal View History

2023-03-10 08:18:58 -06:00
error: null characters in C string literals are not supported
2023-03-06 01:10:23 -06:00
--> $DIR/no-nuls.rs:4:7
|
LL | c"\0";
2023-03-10 08:18:58 -06:00
| ^^
2023-03-06 01:10:23 -06:00
2023-03-10 08:18:58 -06:00
error: null characters in C string literals are not supported
2023-03-06 01:10:23 -06:00
--> $DIR/no-nuls.rs:7:7
|
LL | c"\u{00}";
2023-03-10 08:18:58 -06:00
| ^^^^^^
2023-03-06 01:10:23 -06:00
2023-03-10 08:18:58 -06:00
error: null characters in C string literals are not supported
2023-03-06 01:10:23 -06:00
--> $DIR/no-nuls.rs:10:7
|
LL | c"";
2023-03-10 08:18:58 -06:00
| ^
2023-03-06 01:10:23 -06:00
2023-03-10 08:18:58 -06:00
error: null characters in C string literals are not supported
2023-03-06 01:10:23 -06:00
--> $DIR/no-nuls.rs:13:7
|
LL | c"\x00";
2023-03-10 08:18:58 -06:00
| ^^^^
2023-03-06 01:10:23 -06:00
2023-03-10 08:18:58 -06:00
error: null characters in C string literals are not supported
--> $DIR/no-nuls.rs:16:7
2023-03-06 01:10:23 -06:00
|
LL | cr"";
2023-03-10 08:18:58 -06:00
| ^
2023-03-06 01:10:23 -06:00
error: aborting due to 5 previous errors