1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 01:29:14 -05:00
denoland-deno/ops/optimizer_tests/param_mut_binding_warning.rs

11 lines
280 B
Rust

fn op_read_sync(
state: &mut OpState,
rid: ResourceId,
mut buf: ZeroCopyBuf,
) -> Result<u32, AnyError> {
// Should not warn about unused `mut buf` binding.
//
// This was caused due to incorrect codegen by fast_call.rs
// on an incompatible op function.
Ok(23)
}