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

[Rust] Add support for strings in generics #3191

Closed
deathaxe opened this issue Jan 8, 2022 · 2 comments
Closed

[Rust] Add support for strings in generics #3191

deathaxe opened this issue Jan 8, 2022 · 2 comments
Labels
pending-upstream T: enhancement Improvement of existing language features

Comments

@deathaxe
Copy link
Collaborator

deathaxe commented Jan 8, 2022

What happened?

As a follow-up of #2323 we should probably look into supporting strings within generics at some point, if that syntax feature becomes stable.

State<"accumulate">
@deathaxe deathaxe added the T: enhancement Improvement of existing language features label Jan 8, 2022
@deathaxe deathaxe changed the title [Rust] Add support for generics [Rust] Add support for strings in generics Jan 8, 2022
@FichteFoll
Copy link
Collaborator

Const generics have been stabilized in 1.51, which was released almost a year ago, however &'static str are not allowed with it currently. The code in #2323 only compiles in nightly with a feature flag at the moment (and additionally the feature is marked as "incomplete").

@FichteFoll
Copy link
Collaborator

Relevant upstream tracking issue for documentation: rust-lang/rust#76560

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-upstream T: enhancement Improvement of existing language features
Projects
None yet
Development

No branches or pull requests

2 participants