streamRemaining is a method of std.Io.Reader (see https://ziglang.org/documentation/0.15.1/std/#std.Io.Reader.streamRemaining), not std.compress.flate.Decompress.
FWIW, I encountered this error when I tried to use std.compress.flate.Decompress in combination with streamRemaining in my code. Here's the final code that works on Zig 0.15.2: github.com/kaitai-io/kaitai_struct_zig_runtime@d0aee404b6/src/root.zig (L519-L526)
`streamRemaining` is a method of `std.Io.Reader` (see https://ziglang.org/documentation/0.15.1/std/#std.Io.Reader.streamRemaining), not `std.compress.flate.Decompress`.
FWIW, I encountered this error when I tried to use `std.compress.flate.Decompress` in combination with `streamRemaining` in my code. Here's the final code that works on Zig 0.15.2: https://github.com/kaitai-io/kaitai_struct_zig_runtime/blob/d0aee404b6f3a8584ce4df57c52ce0425dc2ab8e/src/root.zig#L519-L526