Out of memory
This program will create an ever growing string. When it reaches the total size of the (free) memory in the computer it crashes.
examples/other/out-of-memory/src/main.rs
fn main() { let n = 100; let mut text = String::from("x"); for i in 0..n { text.push_str(&text.clone()); println!("len: {} {}", i, text.len()); } }