about summary refs log tree commit diff
path: root/tests/crashes/121858.rs
blob: 7d5bae37f846b568092b4341d77d7b1277e45c4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ known-bug: #121858
#![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)]:,
{
    fn o() -> Union {}
}

fn main() {
    Outer::<1, 1>::o();
}