-
Notifications
You must be signed in to change notification settings - Fork 948
Closed
Labels
1x-backport:completedbugPanic, non-idempotency, invalid code, etc.Panic, non-idempotency, invalid code, etc.
Milestone
Description
When formatting
#![feature(const_generics)]
fn foo<
const N: [u8; {
struct Inner<'a>(&'a ());
3
}],
>() {}
rustfmt changes the empty function argument list from ()
to (&'a ()
, which is incorrect.
#![feature(const_generics)]
fn foo<
const N: [u8; {
struct Inner<'a>(&'a ());
3
}],
>(&'a () {
}
Note that the original code snippet current does not yet compile due to the unfinished nature of const generics,
it should compile in the future though.
Metadata
Metadata
Assignees
Labels
1x-backport:completedbugPanic, non-idempotency, invalid code, etc.Panic, non-idempotency, invalid code, etc.