blob: 644e56f5ccc5b6e3e3935cfa274d861e64f18147 [file] [edit]
//! Regression test for revealing associated types through specialization during const eval.
//@ check-pass
#![feature(specialization)]
trait Foo {
const ASSOC: usize;
}
impl Foo for u32 {
default const ASSOC: usize = 0;
}
fn foo() -> [u8; 0] {
[0; <u32 as Foo>::ASSOC]
}
fn main() {}