summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/const-param-after-const-literal-arg.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/const-generics/const-param-after-const-literal-arg.rs')
-rw-r--r--tests/ui/const-generics/const-param-after-const-literal-arg.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/const-generics/const-param-after-const-literal-arg.rs b/tests/ui/const-generics/const-param-after-const-literal-arg.rs
new file mode 100644
index 000000000..d8a0e076e
--- /dev/null
+++ b/tests/ui/const-generics/const-param-after-const-literal-arg.rs
@@ -0,0 +1,7 @@
+// check-pass
+
+struct Foo<const A: usize, const B: usize>;
+
+impl<const A: usize> Foo<1, A> {} // ok
+
+fn main() {}