diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index fe151fe..c6ec961 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,6 +28,11 @@ pub extern "C" fn main(_nargs: libc::c_int, _args: *const *const libc::c_char) - } { + let x = libc::string::CString::from("bar"); + let _ = stdout.puts(&x); + } + + { let b = alloc::boxed::Box::new(42); let _ = writeln!(stdout, "Bar: {}", b); } |