Skip to content

Comments

Clarify that statics in generic context may not refer to the generics#2148

Closed
meithecatte wants to merge 1 commit intorust-lang:masterfrom
meithecatte:static-generics
Closed

Clarify that statics in generic context may not refer to the generics#2148
meithecatte wants to merge 1 commit intorust-lang:masterfrom
meithecatte:static-generics

Conversation

@meithecatte
Copy link
Contributor

No description provided.

@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Jan 30, 2026
@ehuss
Copy link
Contributor

ehuss commented Feb 3, 2026

I believe this rule is already stated in https://doc.rust-lang.org/nightly/reference/items/generics.html#r-items.generics.syntax.scope. Generics are not in scope for any item defined in a function body.

@ehuss
Copy link
Contributor

ehuss commented Feb 20, 2026

I'm going to close as this rule is already stated, and I don't think we want to duplicate it in each item.

@ehuss ehuss closed this Feb 20, 2026
@rustbot rustbot removed the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants