Skip to content

Commit ab7355a

Browse files
committed
fixup! Add regression test for const generic ICE in #72819
1 parent 568cc22 commit ab7355a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/ui/const-generics/issues/issue-72819-generic-in-const-eval.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#![feature(const_generics)]
22
#![allow(incomplete_features)]
33
struct Arr<const N: usize>
4-
where Assert::<{N < usize::max_value() / 2}>: IsTrue, //~ ERROR constant expression depends on a generic parameter
4+
where Assert::<{N < usize::max_value() / 2}>: IsTrue,
5+
//~^ ERROR constant expression depends on a generic parameter
56
{
67
}
78

0 commit comments

Comments
 (0)