0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-11-24 18:21:15 +01:00
rust/tests/crashes/111419.rs
2024-04-14 11:21:51 +02:00

15 lines
310 B
Rust

//@ known-bug: #111419
#![allow(incomplete_features)]
#![feature(generic_const_exprs, generic_arg_infer)]
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() {}