// check-pass #![feature(const_generics)] #![allow(incomplete_features)] struct Bar(T); impl Bar { const fn value() -> usize { 42 } } struct Foo::value()]>; fn main() {}