diff --git a/tests/source/const_generics.rs b/tests/source/const_generics.rs index 07ef99107a8..01b764dbe45 100644 --- a/tests/source/const_generics.rs +++ b/tests/source/const_generics.rs @@ -34,3 +34,11 @@ fn foo() { pub trait Foo: Bar<{Baz::COUNT}> { const ASD: usize; } + +// #4263 +fn const_generics_on_params< + // AAAA + const BBBB: usize, + /* CCCC */ + const DDDD: usize, + >() {} diff --git a/tests/target/const_generics.rs b/tests/target/const_generics.rs index f49c5a1bb10..b30b7b58c12 100644 --- a/tests/target/const_generics.rs +++ b/tests/target/const_generics.rs @@ -26,3 +26,12 @@ fn foo() { pub trait Foo: Bar<{ Baz::COUNT }> { const ASD: usize; } + +// #4263 +fn const_generics_on_params< + // AAAA + const BBBB: usize, + /* CCCC */ + const DDDD: usize, +>() { +}