2024-05-29 11:06:50 -05:00
|
|
|
//@ known-bug: #121858
|
2024-03-29 18:21:25 -05:00
|
|
|
#![feature(generic_const_exprs)]
|
|
|
|
|
|
|
|
struct Outer<const A: i64, const B: usize>();
|
|
|
|
impl<const A: usize, const B: usize> Outer<A, B>
|
|
|
|
where
|
|
|
|
[(); A + (B * 2)]:,
|
|
|
|
{
|
2024-05-29 11:06:50 -05:00
|
|
|
fn o() -> Union {}
|
2024-03-29 18:21:25 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
Outer::<1, 1>::o();
|
|
|
|
}
|