Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 2d15013

Browse files
authored
Add ICE 78246 (#516)
1 parent 9bf09c2 commit 2d15013

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

ices/78246.rs

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#![feature(const_generics, const_evaluatable_checked)]
2+
3+
pub trait Ice {
4+
type Array;
5+
6+
fn into_bytes(self) -> Self::Array;
7+
}
8+
9+
impl<T: Ice, const N: usize> Ice for [T; N]
10+
where
11+
[(); std::mem::size_of::<T::Array>() * N]: ,
12+
{
13+
type Array = [(); std::mem::size_of::<T::Array>() * N];
14+
15+
fn into_bytes(self) -> Self::Array {}
16+
}
17+
18+
fn main() {}

0 commit comments

Comments
 (0)