Box

  1. 🌟
// Make it work
fn main() {
    // Create a new box `b` that contains the integer 5
    assert_eq!(*b, 5);

    println!("Success!");
}
  1. 🌟

// Make it work
fn main() {
    let b = Box::new("Hello");
    print_boxed_string(b);
}

fn print_boxed_string(b : _) {
    println!("{}", b);
}
  1. 🌟

// Make it work
fn main() {
    let b1 = Box::new(5);
    let b2 = b1;
    assert_eq!(_, 5);

    println!("Success!");
}
  1. 🌟

// Make it work
fn main() {
    // Create a box `b` with an array [1, 2, 3, 4, 5]
    // Print each integer in `b`
}

You can find the solutions here(under the solutions path), but only use it when you need it