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

12 lines
280 B
Rust
Raw Normal View History

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)
}