]>
git.proxmox.com Git - rustc.git/blob - tests/ui/async-await/issue-61793.rs
1 // This testcase used to ICE in codegen due to inconsistent field reordering
2 // in the coroutine state, claiming a ZST field was after a non-ZST field,
3 // while those two fields were at the same offset (which is impossible).
4 // That is, memory ordering of `(X, ())`, but offsets of `((), X)`.
9 async
fn foo
<F
>(_
: &(), _
: F
) {}
14 foo(&(), || {}
).await
;