rust/tests/crashes/125768.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
263 B
Rust
Raw Normal View History

2024-06-08 11:36:21 -05:00
//@ 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();
}