blob: a1efa74090bb474743c96b9e1c6813efc4ae5b0b [file] [log] [blame]
//@ check-pass
#![feature(min_generic_const_args)]
#![allow(incomplete_features)]
// Regression test for normalizing const projections
// with associated const equality bounds.
trait Trait {
type const C: usize;
}
fn f<T: Trait<C = 1>>() {
// This must normalize <T as Trait>::C to 1
let _: [(); T::C] = [()];
}
fn main() {}