Fixes #113375
This commit is contained in:
Matthias Krüger 2023-11-02 16:15:33 +01:00
parent b800c30352
commit 666cad9a5f

View File

@ -0,0 +1,18 @@
// 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>(T);
impl<T> Bar<T> {
const fn value() -> usize {
42
}
}
struct Foo<const N: [u8; Bar::<u32>::value()]>;
pub fn main() {}