mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
16 lines
263 B
Rust
16 lines
263 B
Rust
//@ 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();
|
|
}
|