-
Notifications
You must be signed in to change notification settings - Fork 986
Open
Labels
A-commentsArea: commentsArea: commentsC-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICECategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICEneeds-triageThis issue or PR needs triaging to determine its status. Remove label once sufficiently triaged.This issue or PR needs triaging to determine its status. Remove label once sufficiently triaged.
Description
I tried this code:
trait Foo {
type Bar<'a>: Baz1 //
where Self: 'a;
}Run rustfmt
trait Foo {
type Bar<'a>: Baz1
: Baz1 //
where
Self: 'a;
}Can reproduce without <'a>, but the code would be pointless in that case.
Somewhat related: comment is discarded
trait Foo {
type Bar: Baz1 // what
;
}Run rustfmt
trait Foo {
type Bar: Baz1;
}Meta
rustfmt 1.7.1-nightly (35b658f 2024-07-08)
Backtrace
<backtrace>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-commentsArea: commentsArea: commentsC-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICECategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICEneeds-triageThis issue or PR needs triaging to determine its status. Remove label once sufficiently triaged.This issue or PR needs triaging to determine its status. Remove label once sufficiently triaged.