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

E0695 - 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 E0695

A break statement without a label appeared inside a labeled block.

Erroneous code example:

#![allow(unused)]
fn main() {
loop {
    'a: {
        break;
    }
}
}

Make sure to always label the break:

#![allow(unused)]
fn main() {
'l: loop {
    'a: {
        break 'l;
    }
}
}

Or if you want to break the labeled block:

#![allow(unused)]
fn main() {
loop {
    'a: {
        break 'a;
    }
    break;
}
}








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/./E0695.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy