Do not duplicate const keyword on parameters

This commit is contained in:
topecongiro 2020-06-30 18:19:13 +09:00 committed by Caleb Cartwright
parent c0fede355c
commit 152ccb5059
2 changed files with 17 additions and 0 deletions

View File

@ -34,3 +34,11 @@ fn foo<const X: usize>() {
pub trait Foo: Bar<{Baz::COUNT}> {
const ASD: usize;
}
// #4263
fn const_generics_on_params<
// AAAA
const BBBB: usize,
/* CCCC */
const DDDD: usize,
>() {}

View File

@ -26,3 +26,12 @@ fn foo<const X: usize>() {
pub trait Foo: Bar<{ Baz::COUNT }> {
const ASD: usize;
}
// #4263
fn const_generics_on_params<
// AAAA
const BBBB: usize,
/* CCCC */
const DDDD: usize,
>() {
}