Rollup merge of #117516 - matthiaskrgr:test_effects_113375_oob, r=fee1-dead
add test for #113375 Fixes #113375 r? `@fee1-dead`
This commit is contained in:
commit
8a34fea835
@ -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