We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9d5082e + 031212b commit 5a2ecb8Copy full SHA for 5a2ecb8
src/test/run-pass/smallest-hello-world.rs
@@ -26,7 +26,7 @@ pub extern fn rust_stack_exhausted() {}
26
#[no_split_stack]
27
fn main(_: int, _: **u8) -> int {
28
unsafe {
29
- let (ptr, _): (*u8, uint) = transmute("Hello!");
+ let (ptr, _): (*u8, uint) = transmute("Hello!\0");
30
puts(ptr);
31
}
32
return 0;
0 commit comments