blob: 72a3098b76cfebfee1bc07953cecc755b6f7a4de [file] [log] [blame]
//@ check-pass
#![feature(generic_const_items, min_generic_const_args)]
#![allow(incomplete_features)]
type const CT<T: ?Sized>: usize = { <T as Trait>::N };
trait Trait {
type const N: usize;
}
impl<T: ?Sized> Trait for T {
type const N:usize = 0;
}
fn f(_x: [(); CT::<()>]) {}
fn main() {}