Skip to content

Commit

Permalink
Rollup merge of rust-lang#117516 - matthiaskrgr:test_effects_113375_o…
Browse files Browse the repository at this point in the history
…ob, r=fee1-dead

add test for rust-lang#113375

Fixes rust-lang#113375

r? `@fee1-dead`
  • Loading branch information
matthiaskrgr committed Nov 6, 2023
2 parents 1683df7 + 666cad9 commit 8a34fea
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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() {}

0 comments on commit 8a34fea

Please sign in to comment.