[personal profile] sassa_nf
Ok, can we pass a function that consumes items instead of returning an Iterator?
error[E0666]: nested `impl Trait` is not allowed
   --> src/main.rs:103:63
    |
103 |    fn scan<T>(&mut self, z: T, mut f: impl FnMut(HeapElement, impl std::io::Read, T) -> T) -> std::io::Result<T> {
    |                                       ------------------------^^^^^^^^^^^^^^^^^^---------
    |                                       |                       |
    |                                       |                       nested `impl Trait` here
    |                                       outer `impl Trait`
Computer says "no".

Date: 2020-01-13 03:02 pm (UTC)
juan_gandhi: (Default)
From: [personal profile] juan_gandhi
They have a pretty weird type system. I don't know how to interpret all this.

Date: 2020-01-13 11:30 pm (UTC)
juan_gandhi: (Default)
From: [personal profile] juan_gandhi
It's all pretty weird.

Profile

sassa_nf

January 2026

S M T W T F S
    123
45678910
111213141516 17
18192021222324
25262728293031

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 20th, 2026 11:35 pm
Powered by Dreamwidth Studios