parent
b800c30352
commit
666cad9a5f
1 changed files with 18 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue