← Quit0 / 0 correct
RustHard1 of 1044

Why can't you write a safe self-referential struct like this directly?

struct Doc {
    text: String,
    first_word: &str, // points into text
}