diff options
Diffstat (limited to 'src/test/ui/const-generics/const-param-after-const-literal-arg.rs')
-rw-r--r-- | src/test/ui/const-generics/const-param-after-const-literal-arg.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/const-generics/const-param-after-const-literal-arg.rs b/src/test/ui/const-generics/const-param-after-const-literal-arg.rs new file mode 100644 index 000000000..d8a0e076e --- /dev/null +++ b/src/test/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() {} |