From 8657cb8efe934501f4ac316bbde0ac4daa1f0d0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20K=C3=A5rlin?= Date: Thu, 19 Jan 2023 15:39:05 +0100 Subject: [PATCH] Added UI test case for issue #106419 --- ...issue-106419-struct-with-multiple-const-params.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/ui/const-generics/issue-106419-struct-with-multiple-const-params.rs 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 0000000000000..8363e5af4b61c --- /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 +where + [(); A as usize]:, + [(); B as usize]:, +{} + +fn main() {}