diff options
Diffstat (limited to 'ops/tests/compile_fail/mem_slices.rs')
-rw-r--r-- | ops/tests/compile_fail/mem_slices.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/ops/tests/compile_fail/mem_slices.rs b/ops/tests/compile_fail/mem_slices.rs deleted file mode 100644 index da74ac577..000000000 --- a/ops/tests/compile_fail/mem_slices.rs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. - -use deno_ops::op; - -#[op] -fn sync_test(slice: &mut [u32]) { - // -} - -#[op] -async fn async_test(slice: &[u8]) { - // Memory slices are not allowed in async ops. -} - -#[op] -fn async_test2(slice: &mut [u8]) -> impl Future<Output = ()> { - // Memory slices are not allowed in async ops, even when not implemented as an - // async function. - async {} -} - -fn main() { - // pass -} |