parent
b800c30352
commit
666cad9a5f
@ -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() {}
|
Loading…
x
Reference in New Issue
Block a user