Content-Length: 12849 | pFad | https://doc.rust-lang.org/std/pin/../default/../rc/../../../std/../error_codes/./E0268.html

E0268 - Error codes index

Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Error code E0268

A loop keyword (break or continue) was used outside of a loop.

Erroneous code example:

#![allow(unused)]
fn main() {
fn some_func() {
    break; // error: `break` outside of a loop
}
}

Without a loop to break out of or continue in, no sensible action can be taken. Please verify that you are using break and continue only in loops. Example:

#![allow(unused)]
fn main() {
fn some_func() {
    for _ in 0..10 {
        break; // ok!
    }
}
}








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://doc.rust-lang.org/std/pin/../default/../rc/../../../std/../error_codes/./E0268.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy