Skip to content

Commit

Permalink
add test for #113375
Browse files Browse the repository at this point in the history
Fixes #113375
  • Loading branch information
matthiaskrgr committed Nov 2, 2023
1 parent b800c30 commit 666cad9
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 666cad9

Please sign in to comment.