← Quit0 / 0 correct
Why does a struct holding a borrowed string need a lifetime parameter?
struct Parser<'a> {
input: &'a str,
pos: usize,
}Why does a struct holding a borrowed string need a lifetime parameter?
struct Parser<'a> {
input: &'a str,
pos: usize,
}