Skip to content

Commit 75a60d3

Browse files
committed
Move asm! noreturn + output example to correct location
1 parent 9a6e970 commit 75a60d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/inline-assembly.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1192,9 +1192,6 @@ unsafe { core::arch::asm!("", options(pure)); }
11921192
r[asm.options.checks.noreturn]
11931193
- It is a compile-time error to specify `noreturn` on an asm block with outputs and without labels.
11941194

1195-
r[asm.options.checks.label-with-outputs]
1196-
- It is a compile-time error to have any `label` blocks in an asm block with outputs.
1197-
11981195
```rust,compile_fail
11991196
# #[cfg(target_arch = "x86_64")] {
12001197
let z: i32;
@@ -1205,6 +1202,9 @@ unsafe { core::arch::asm!("mov {:e}, 1", out(reg) z, options(noreturn)); }
12051202
# #[cfg(not(target_arch = "x86_64"))] core::compile_error!("Test not supported on this arch");
12061203
```
12071204

1205+
r[asm.options.checks.label-with-outputs]
1206+
- It is a compile-time error to have any `label` blocks in an asm block with outputs.
1207+
12081208
r[asm.options.global_asm-restriction]
12091209
`global_asm!` only supports the `att_syntax` and `raw` options.
12101210
The remaining options are not meaningful for global-scope inline assembly

0 commit comments

Comments
 (0)