Skip to content

Commit

Permalink
Add 80561
Browse files Browse the repository at this point in the history
  • Loading branch information
fanninpm committed Jan 30, 2021
1 parent 825477f commit b1e9a7d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ices/80561.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#![feature(const_generics)]
#![feature(const_evaluatable_checked)]
pub struct SimpleStruct<const N: usize>([u8; N]);

impl<const N: usize> SimpleStruct<N> {
pub fn new() -> Self {
loop {}
}
}

pub trait TraitA {
const SIZE: usize;
fn zero()
where
[(); Self::SIZE]: ,
{
let _ = SimpleStruct::<{ Self::SIZE }>::new();
}
}

fn main() {}

0 comments on commit b1e9a7d

Please sign in to comment.