From 4a3c9702104522766e12f27497ad944f4ab4ab2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Thu, 7 Jul 2022 19:33:56 +0200 Subject: [PATCH] add 2 ices https://github.com/rust-lang/rust/issues/98932 https://github.com/rust-lang/rust/issues/98897 --- ices/98897.rs | 3 +++ ices/98932.rs | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 ices/98897.rs create mode 100644 ices/98932.rs diff --git a/ices/98897.rs b/ices/98897.rs new file mode 100644 index 00000000..9cd94f9d --- /dev/null +++ b/ices/98897.rs @@ -0,0 +1,3 @@ +pub fn main() { + (|_, ()| ())([return, ()]); +} diff --git a/ices/98932.rs b/ices/98932.rs new file mode 100644 index 00000000..8c9953a1 --- /dev/null +++ b/ices/98932.rs @@ -0,0 +1,13 @@ +pub struct EntriesBuffer(Box<[[u8; HashesEntry::LEN]; 5]>); + +impl EntriesBuffer { + pub fn iter_child_buffers(&mut self) -> impl Iterator { + self.0.iter_mut() + } +} + +pub struct HashesEntry<'a>(&'a [u8]); + +impl HashesEntry<'_> { + pub const LEN: usize = 1; +}