| ... | @@ -10595,7 +10595,7 @@ pub fn main() !void { | ... | @@ -10595,7 +10595,7 @@ pub fn main() !void { |
| 10595 | {#header_close#} | 10595 | {#header_close#} |
| 10596 | | 10596 | |
| 10597 | {#header_open|Where are the bytes?#} | 10597 | {#header_open|Where are the bytes?#} |
| 10598 | <p>String literals such as {#syntax#}"foo"{#endsyntax#} are in the global constant data section. | 10598 | <p>String literals such as {#syntax#}"hello"{#endsyntax#} are in the global constant data section. |
| 10599 | This is why it is an error to pass a string literal to a mutable slice, like this: | 10599 | This is why it is an error to pass a string literal to a mutable slice, like this: |
| 10600 | </p> | 10600 | </p> |
| 10601 | {#code_begin|test_err|test_string_literal_to_slice|expected type '[]u8', found '*const [5:0]u8'#} | 10601 | {#code_begin|test_err|test_string_literal_to_slice|expected type '[]u8', found '*const [5:0]u8'#} |