about summary refs log tree commit diff
path: root/tests/ui/asm/issue-113788.rs
blob: 3b11e253eda27a2e865e4fd1b8ea2f65f5f3fa1d (plain)
1
2
3
4
5
6
7
// test that "error: arguments for inline assembly must be copyable" doesn't show up in this code
//@ needs-asm-support
//@ only-x86_64
fn main() {
    let peb: *const PEB; //~ ERROR cannot find type `PEB` in this scope [E0412]
    unsafe { std::arch::asm!("mov {0}, fs:[0x30]", out(reg) peb); }
}