Skip to content

Commit

Permalink
Add 86535
Browse files Browse the repository at this point in the history
  • Loading branch information
fanninpm committed Jul 4, 2021
1 parent 5b9588b commit e522523
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ices/86535.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#![crate_type = "lib"]
#![feature(const_generics, const_evaluatable_checked)]
#![allow(incomplete_features)]

pub trait Foo {
const ASSOC_C: usize;
fn foo() where [(); Self::ASSOC_C]:;
}

struct Bar<const N: &'static ()>;
impl<const N: &'static ()> Foo for Bar<N> {
const ASSOC_C: usize = 3;

fn foo() where [u8; Self::ASSOC_C]: {
let _: [u8; Self::ASSOC_C] = loop {};
}
}

0 comments on commit e522523

Please sign in to comment.