asm_goto_with_outputs - The Rust Unstable Book

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

# `asm_goto_with_outputs`

The tracking issue for this feature is: #119364

This feature allows label operands to be used together with output operands.

Example:

    unsafe {
        let a: usize;
        asm!(
            "mov {}, 1"
            "jmp {}",
            out(reg) a,
            label {
                println!("Jumped from asm {}!", a);
            }
        );
    }

The output operands are assigned before the label blocks are executed.