What does this program print?

from Moves, partial moves and drops
Rust 1.98 intermediate 2 min

What does this program print?

Rust
struct Record {
    id: String,
    retries: u8,
}

fn main() {
    let record = Record {
        id: String::from("job-7"),
        retries: 2,
    };
    let id = record.id;
    println!("{id} {}", record.retries);
}
Open in playground
Report an error