Skip to content

Commit

Permalink
Do not duplicate const keyword on parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
topecongiro authored and calebcartwright committed Jan 28, 2021
1 parent c0fede3 commit 152ccb5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/source/const_generics.rs
Expand Up @@ -34,3 +34,11 @@ type Foo<const N: usize> = [i32; N + 1];
pub trait Foo: Bar<{Baz::COUNT}> {
const ASD: usize;
}

// #4263
fn const_generics_on_params<
// AAAA
const BBBB: usize,
/* CCCC */
const DDDD: usize,
>() {}
9 changes: 9 additions & 0 deletions tests/target/const_generics.rs
Expand Up @@ -26,3 +26,12 @@ type Foo<const N: usize> = [i32; N + 1];
pub trait Foo: Bar<{ Baz::COUNT }> {
const ASD: usize;
}

// #4263
fn const_generics_on_params<
// AAAA
const BBBB: usize,
/* CCCC */
const DDDD: usize,
>() {
}

0 comments on commit 152ccb5

Please sign in to comment.