initial working state

This commit is contained in:
Bastian Kauschke 2020-09-10 09:06:30 +02:00
parent 2c69266c06
commit d327fa112b
8 changed files with 313 additions and 13 deletions

View file

@ -0,0 +1,14 @@
// run-pass
#![feature(const_generics, const_evaluatable_checked)]
#![allow(incomplete_features)]
struct Foo<const B: bool>;
fn test<const N: usize>() -> Foo<{ N > 10 }> where Foo<{ N > 10 }>: Sized {
Foo
}
fn main() {
let _: Foo<true> = test::<12>();
let _: Foo<false> = test::<9>();
}