Continue return never type compile error
⚓ Rust 📅 2025-05-17 👤 surdeus 👁️ 10 let guess: u32 = match guess.trim().parse() {
Ok(num) => num,
Err(_) => continue,
};
this code is from Advanced Types - The Rust Programming Language
when i copy this code into rustrover, the ide tells me compile error: "continue can obly be used inside a loop/while block".
WHY?
4 posts - 3 participants
🏷️ rust_feed

