summaryrefslogtreecommitdiff
path: root/ops/tests/compile_fail/unsupported.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ops/tests/compile_fail/unsupported.rs')
-rw-r--r--ops/tests/compile_fail/unsupported.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/ops/tests/compile_fail/unsupported.rs b/ops/tests/compile_fail/unsupported.rs
index 1c4d6407a..52d55de5b 100644
--- a/ops/tests/compile_fail/unsupported.rs
+++ b/ops/tests/compile_fail/unsupported.rs
@@ -17,6 +17,13 @@ fn op_u16_arg(a: u16, b: u16) {
//
}
+use deno_core::v8::fast_api::FastApiCallbackOptions;
+
+#[op(fast)]
+fn op_callback_options(options: &mut FastApiCallbackOptions) {
+ // fast callback options must be an Option.
+}
+
#[op(fast)]
async fn op_async_fn(a: i32, b: i32) -> i32 {
a + b