Closed
Description
fn invoke(pc_section: &[usize]) {
unsafe {
std::arch::asm!(
"/* {} */",
in(reg) pc_section[0]
);
}
}
results in
error: cannot use value of type `<[usize] as Index<usize>>::Output` for inline assembly
--> src/main.rs:5:21
|
5 | in(reg) pc_section[0]
| ^^^^^^^^^^^^^
|
= note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
Metadata
Metadata
Assignees
Type
Projects
Status
done