mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
15 lines
248 B
Rust
15 lines
248 B
Rust
//@ 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();
|
|
}
|