Practice question from rust life time practice advanced

Complete the lifetime annotations:

struct Parser<'____> {
    text: &'____ str
}

Answer

["a","a"]

Explanation

Consistent lifetime annotation ensures that the reference in the struct has a well-defined lifetime scope.

More questions from Quick: rust life time practice advanced