// check-pass // effects ice https://github.com/rust-lang/rust/issues/113375 index out of bounds #![allow(incomplete_features, unused)] #![feature(effects, adt_const_params)] struct Bar(T); impl Bar { const fn value() -> usize { 42 } } struct Foo::value()]>; pub fn main() {}