// Regression test for issue #109759. // check-pass #![feature(inherent_associated_types)] #![allow(incomplete_features)] struct Foo; struct Bar([(); X]); impl Bar { pub fn new() -> Self { Self([(); X]) } } impl Foo { type Bar = Bar; } fn main() { let _ = Foo::Bar::<10>::new(); }