fn main() {
println!("Hello, world!");
}
==18407== Memcheck, a memory error detector
==18407== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==18407== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==18407== Command: ./testt
==18407==
==18407==
==18407== HEAP SUMMARY:
==18407== in use at exit: 0 bytes in 0 blocks
==18407== total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==18407==
==18407== All heap blocks were freed -- no leaks are possible
==18407==
==18407== For counts of detected and suppressed errors, rerun with: -v
==18407== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
:D
String
and Vec
Yes, using
#![feature(alloc_system)]
extern crate alloc_system;
and Not Rust's allocator, it is leaking...
Rust
would be through rustup
: https://www.rustup.rs/