Do not duplicate const keyword on parameters
This commit is contained in:
parent
c0fede355c
commit
152ccb5059
@ -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,
|
||||
>() {}
|
||||
|
@ -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,
|
||||
>() {
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user