Skip to content

Comments removed/eaten after generic trait header before body #5922

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

Open
Joeoc2001 opened this issue Sep 22, 2023 · 0 comments
Open

Comments removed/eaten after generic trait header before body #5922

Joeoc2001 opened this issue Sep 22, 2023 · 0 comments

Comments

@Joeoc2001
Copy link

Similarly to #4649 and #4774, comments are stripped after trait headers if after a generic parameter:

Before:

trait Foo<T> // my comment 
{}

After:

trait Foo<T> {}

Before:

trait Bar<T> /* My comment */ {
    fn bar();
}

After:

trait Bar<T> {
    fn bar();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants