summaryrefslogtreecommitdiffstats
path: root/src/test/ui/typeck/issue-104510-ice.rs
blob: 157bdf07e3826e7fa02f1b246371d9fedc7c8f91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// needs-asm-support
// only-x86_64

struct W<T: ?Sized>(Oops);
//~^ ERROR cannot find type `Oops` in this scope

unsafe fn test() {
    let j = W(());
    let pointer = &j as *const _;
    core::arch::asm!(
        "nop",
        in("eax") pointer,
    );
}

fn main() {}