Which pair of lengths does this program print?

from Ownership
Rust 1.98 beginner 2 min

Which pair of lengths does this program print?

Rust
fn main() {
    let original = vec![10, 20];
    let mut copy = original.clone();
    copy.push(30);
    println!("{} {}", original.len(), copy.len());
}
Open in playground
Report an error