diff options
| author | Takayuki Maeda <takoyaki0316@gmail.com> | 2023-06-08 00:57:22 +0900 |
|---|---|---|
| committer | Takayuki Maeda <takoyaki0316@gmail.com> | 2023-06-08 15:24:09 +0900 |
| commit | 5e57e27d7a949f56402b80e2a78c618ed8a3aedb (patch) | |
| tree | 5593faeffc22fb9bb2e6bffefa8f1a5735987036 | |
| parent | e94bda3bf13303671427363d1cd93ac5e089f090 (diff) | |
add a test for #105709
replace build with check Co-authored-by: Michael Goulet <michael@errs.io> use appropriate test name
| -rw-r--r-- | tests/ui/const-generics/generic_const_exprs/inline-const-in-const-generic-defaults.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/const-generics/generic_const_exprs/inline-const-in-const-generic-defaults.rs b/tests/ui/const-generics/generic_const_exprs/inline-const-in-const-generic-defaults.rs new file mode 100644 index 00000000000..d81cba62754 --- /dev/null +++ b/tests/ui/const-generics/generic_const_exprs/inline-const-in-const-generic-defaults.rs @@ -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() {} |
