-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
A-prettyArea: Pretty printing (including `-Z unpretty`)Area: Pretty printing (including `-Z unpretty`)
Description
So I wrote a regression test for a certain error and it held up the rollup PR (see #24979) because while my test passed the run-pass it failed during the pretty pass. The problem is that the prettifier (compiling with -Z unstable-options --pretty=expanded) transforms the original code example from #22471
type Foo<T> where T: Copy = Box<T>;into
type Foo<T> = Box<T> where T: Copy;which upon compilation leads to the following error:
error: expected one of `+`, `::`, or `;`, found `where`
type Foo<T> = Box<T> where T: Copy;
This seems to indicate a bug in the prettifier as (seemingly) valid code is transformed into non-compiling one.
Metadata
Metadata
Assignees
Labels
A-prettyArea: Pretty printing (including `-Z unpretty`)Area: Pretty printing (including `-Z unpretty`)