summaryrefslogtreecommitdiffstats
path: root/dom/media/gtest/hello.rs
blob: af1308eee6c0bfd19a3be7f8745043faa7a73d41 (plain)
1
2
3
4
5
6
#[no_mangle]
pub extern "C" fn test_rust() -> *const u8 {
    // NB: rust &str aren't null terminated.
    let greeting = "hello from rust.\0";
    greeting.as_ptr()
}