]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-104510-ice.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / 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() {}