fixup! Add regression test for const generic ICE in #72819

This commit is contained in:
Ayaz Hafiz 2020-06-06 12:00:23 -07:00
parent 568cc22c3d
commit ab7355a886
No known key found for this signature in database
GPG Key ID: B443F7A3030C9AED
1 changed files with 2 additions and 1 deletions

View File

@ -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
{
}