Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

where removed between type name and = #4322

Closed
kgtkr opened this issue Jul 12, 2020 · 2 comments
Closed

where removed between type name and = #4322

kgtkr opened this issue Jul 12, 2020 · 2 comments
Labels
bug Panic, non-idempotency, invalid code, etc.

Comments

@kgtkr
Copy link

kgtkr commented Jul 12, 2020

Relation #4244
GAT: rust-lang/rust#44265

Describe the bug

trait Bar {
  type X<'a> where Self: 'a;
}

↓format

trait Bar {
  type X<'a>;
}

Similar phenomenon occurs in impl Trait

Expected behavior
Code is not removed.

Meta

  • rustfmt version:
    rustfmt 1.4.18-nightly (c1e9b7b 2020-06-13)
  • From where did you install rustfmt?:
    rustup
  • How do you run rustfmt:
    editor save on format(vscode rls)
@kgtkr kgtkr added the bug Panic, non-idempotency, invalid code, etc. label Jul 12, 2020
@ayazhafiz
Copy link
Contributor

ayazhafiz commented Jul 12, 2020

dupe of #4315, verified in #4317

@kgtkr
Copy link
Author

kgtkr commented Jul 12, 2020

@ayazhafiz Thanks, close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Panic, non-idempotency, invalid code, etc.
Projects
None yet
Development

No branches or pull requests

2 participants