Rollup merge of #112389 - TaKO8Ki:issue-105709, r=compiler-errors

Add a test for #105709

Closes #105709
This commit is contained in:
Guillaume Gomez 2023-06-08 10:15:11 +02:00 committed by GitHub
commit 5b7eba6a29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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