Skip to content

Commit

Permalink
fixup! Add regression test for const generic ICE in rust-lang#72819
Browse files Browse the repository at this point in the history
  • Loading branch information
ayazhafiz committed Jun 6, 2020
1 parent 568cc22 commit ab7355a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#![feature(const_generics)]
#![allow(incomplete_features)]
struct Arr<const N: usize>
where Assert::<{N < usize::max_value() / 2}>: IsTrue, //~ ERROR constant expression depends on a generic parameter
where Assert::<{N < usize::max_value() / 2}>: IsTrue,
//~^ ERROR constant expression depends on a generic parameter
{
}

Expand Down

0 comments on commit ab7355a

Please sign in to comment.