Skip to content

Commit

Permalink
Unrolled build for rust-lang#117516
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#117516 - matthiaskrgr:test_effects_113375_oob, r=fee1-dead

add test for rust-lang#113375

Fixes rust-lang#113375

r? `@fee1-dead`
  • Loading branch information
rust-timer authored Nov 6, 2023
2 parents fb61292 + 666cad9 commit fa1a23e
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 fa1a23e

Please sign in to comment.