What does this program print?

from Borrowing rules
Rust 1.98 beginner 2 min

What does this program print?

Rust
fn main() {
    let mut values = vec![10, 20, 30];
    let first = &values[0];
    println!("first: {first}");
    values.push(40);
    println!("values: {values:?}");
}
Open in playground
Report an error