diff options
| author | Patrik Kårlin <patrik.karlin@gmail.com> | 2023-01-19 15:39:05 +0100 |
|---|---|---|
| committer | Patrik Kårlin <patrik.karlin@gmail.com> | 2023-01-19 15:39:05 +0100 |
| commit | 8657cb8efe934501f4ac316bbde0ac4daa1f0d0c (patch) | |
| tree | 9c148bd68e5d6a4cd616200a8ee9d0eb168b3ff7 | |
| parent | 705a96d39bbd97ac0cc8ae119b0f3c097ab62fc0 (diff) | |
| download | rust-8657cb8efe934501f4ac316bbde0ac4daa1f0d0c.tar.gz rust-8657cb8efe934501f4ac316bbde0ac4daa1f0d0c.zip | |
Added UI test case for issue #106419
| -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 00000000000..8363e5af4b6 --- /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() {} |
