Skip to content

Commit

Permalink
Add 80077
Browse files Browse the repository at this point in the history
  • Loading branch information
fanninpm committed Dec 19, 2020
1 parent 91b4f12 commit ae2d2d9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ices/80077.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#![feature(
const_assume,
const_evaluatable_checked,
const_generics,
use std::intrinsics::assume;
)]
#![allow(incomplete_features)]

const fn foo(n: usize) -> usize { n }

pub struct Bar<const N: usize>(usize);

impl<const N: usize> Bar<N> where [(); foo(N)]: {
fn spam(i: usize) { }
}

fn main() {}

0 comments on commit ae2d2d9

Please sign in to comment.