]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-104510-ice.rs
Rollup merge of #106714 - Ezrashaw:remove-e0490, r=davidtwco
[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() {}