charon icon indicating copy to clipboard operation
charon copied to clipboard

Failure: Unexpected ShallowInitBox

Open R1kM opened this issue 4 months ago • 0 comments

Charon commit e0b2b31 aborts on the following code with error message Compilation failed: error: Unexpected ShallowInitBox``

use std::vec;

pub struct Error {
    messages: Vec<u8>,
}

pub struct IntoIter {
  messages: vec::IntoIter<u8>
}

impl Iterator for IntoIter {
    type Item = Error;

    fn next(&mut self) -> Option<Self::Item> {
        Some(Error {
            messages: vec![self.messages.next()?],
        })
    }
}

R1kM avatar Oct 01 '24 18:10 R1kM