-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
"foo" is &str, so &"foo" should be & &str #10105
Comments
Not saying this is a bad idea, but changing it might raise a different consistency problem: |
I don't think it would introduce any confusion. A |
We made a deliberate decision at some point to make |
I think the distinction for arrays is fine, because both forms are useful. Strings don't really act like arrays either way. |
I'll open a formal RFC about this soon. |
(removing I-nominated tag. We do not know what exactly this was nominated for; we believe that the solution to this will fall out of DST work.) |
This is part of DST: #12938 |
let x: &str = "foo";
let y: &&str = &"foo"; I believe this is done. |
No description provided.
The text was updated successfully, but these errors were encountered: