]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-104510-ice.rs
Merge commit '1d8491b120223272b13451fc81265aa64f7f4d5b' into sync-from-rustfmt
[rust.git] / tests / ui / typeck / issue-104510-ice.rs
1 // needs-asm-support
2 // only-x86_64
3
4 struct W<T: ?Sized>(Oops);
5 //~^ ERROR cannot find type `Oops` in this scope
6
7 unsafe fn test() {
8     let j = W(());
9     let pointer = &j as *const _;
10     core::arch::asm!(
11         "nop",
12         in("eax") pointer,
13     );
14 }
15
16 fn main() {}