about summary refs log tree commit diff
path: root/tests/crashes/125768.rs
blob: 3c04431baa0adbb8c38d43babdda834996fbe03b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ known-bug: rust-lang/rust#125768

#![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();
}