← Quit0 / 0 correct
RustMedium1 of 476

Why does a struct holding a borrowed string need a lifetime parameter?

struct Parser<'a> {
    input: &'a str,
    pos: usize,
}