-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
rust-lang/rust
#140302Labels
from-craterA regression found via a crater run, not part of our test suiteA regression found via a crater run, not part of our test suite
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
Labels
from-craterA regression found via a crater run, not part of our test suiteA regression found via a crater run, not part of our test suite
Type
Projects
Status
done