mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-26 20:21:59 +00:00
15 lines
291 B
Rust
15 lines
291 B
Rust
//@ known-bug: #111419
|
|
#![allow(incomplete_features)]
|
|
#![feature(generic_const_exprs)]
|
|
|
|
pub trait Example<const X: usize, const Y: usize, const Z: usize = { X + Y }>
|
|
where
|
|
[(); X + Y]:,
|
|
{}
|
|
|
|
impl<const X: usize, const Y: usize> Example<X, Y> for Value {}
|
|
|
|
pub struct Value;
|
|
|
|
fn main() {}
|