Why does ref in struct need lifetime?
⚓ Rust 📅 2025-08-17 👤 surdeus 👁️ 21struct Parse { ■ rustc: consider introducing a named lifetime parameter: `<'a>`, `'a `
pattern:&str, ■ rustc: missing lifetime specifier expected named lifetime parameter
}
I really curious about this ? ![]()
2 posts - 2 participants
🏷️ Rust_feed