diff options
Diffstat (limited to 'tests/ui/const-generics/issue-106419-struct-with-multiple-const-params.rs')
-rw-r--r-- | tests/ui/const-generics/issue-106419-struct-with-multiple-const-params.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/const-generics/issue-106419-struct-with-multiple-const-params.rs b/tests/ui/const-generics/issue-106419-struct-with-multiple-const-params.rs new file mode 100644 index 000000000..8363e5af4 --- /dev/null +++ b/tests/ui/const-generics/issue-106419-struct-with-multiple-const-params.rs @@ -0,0 +1,12 @@ +// check-pass +#![feature(generic_const_exprs)] +#![allow(incomplete_features)] + +#[derive(Clone)] +struct Bar<const A: usize, const B: usize> +where + [(); A as usize]:, + [(); B as usize]:, +{} + +fn main() {} |