]> git.lizzy.rs Git - rust.git/blob - src/test/ui/asm/issue-87802.rs
Auto merge of #98471 - wesleywiser:update_measureme, r=Mark-Simulacrum
[rust.git] / src / test / ui / asm / issue-87802.rs
1 // needs-asm-support
2 // ignore-nvptx64
3 // ignore-spirv
4 // ignore-wasm32
5 // Make sure rustc doesn't ICE on asm! when output type is !.
6
7 use std::arch::asm;
8
9 fn hmm() -> ! {
10     let x;
11     unsafe {
12         asm!("/* {0} */", out(reg) x);
13         //~^ ERROR cannot use value of type `!` for inline assembly
14     }
15     x
16 }
17
18 fn main() {
19     hmm();
20 }