← Quit0 / 0 correct
RustMedium1 of 94

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

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