rust/tests/ui/const-generics/generic_const_exprs/inline-const-in-const-generic-defaults.rs
Takayuki Maeda 5e57e27d7a add a test for #105709
replace build with check

Co-authored-by: Michael Goulet <michael@errs.io>

use appropriate test name
2023-06-08 15:24:09 +09:00

10 lines
191 B
Rust

// check-pass
#![feature(generic_const_exprs)]
#![feature(inline_const)]
#![allow(incomplete_features)]
pub struct ConstDefaultUnstable<const N: usize = { const { 3 } }>;
pub fn main() {}