]>
git.proxmox.com Git - rustc.git/blob - tests/ui/async-await/issues/issue-67611-static-mut-refs.rs
4 static mut A
: [i32; 5] = [1, 2, 3, 4, 5];
6 fn is_send_sync
<T
: Send
+ Sync
>(_
: T
) {}
9 let u
= unsafe { A[async { 1 }
.await
] };
12 i
if async { true }
.await
=> (),
19 let index_block
= async
{
20 let u
= unsafe { A[async { 1 }
.await
] };
22 let match_block
= async
{
25 i
if async { true }
.await
=> (),
30 is_send_sync(index_block
);
31 is_send_sync(match_block
);