summaryrefslogtreecommitdiff
path: root/ops/tests/compile_fail/unsupported.rs
blob: 1c4d6407ad315efe837f8f91c1cb5640edb1df2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2019-2020 the Deno authors. All rights reserved. MIT license.

use deno_ops::op;

#[op(fast)]
fn op_result_return(a: i32, b: i32) -> Result<(), ()> {
  a + b
}

#[op(fast)]
fn op_u8_arg(a: u8, b: u8) {
  //
}

#[op(fast)]
fn op_u16_arg(a: u16, b: u16) {
  //
}

#[op(fast)]
async fn op_async_fn(a: i32, b: i32) -> i32 {
  a + b
}

fn main() {
  // pass
}