Skip to content

Commit b1e9a7d

Browse files
committed
Add 80561
Issue: rust-lang/rust#80561
1 parent 825477f commit b1e9a7d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

ices/80561.rs

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#![feature(const_generics)]
2+
#![feature(const_evaluatable_checked)]
3+
pub struct SimpleStruct<const N: usize>([u8; N]);
4+
5+
impl<const N: usize> SimpleStruct<N> {
6+
pub fn new() -> Self {
7+
loop {}
8+
}
9+
}
10+
11+
pub trait TraitA {
12+
const SIZE: usize;
13+
fn zero()
14+
where
15+
[(); Self::SIZE]: ,
16+
{
17+
let _ = SimpleStruct::<{ Self::SIZE }>::new();
18+
}
19+
}
20+
21+
fn main() {}

0 commit comments

Comments
 (0)