We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code doesn't compile. It would be nice if it did.
fn main() { let x: [u8, ..1] = [0]; let y: [u8, ..1] = x.clone(); }
This is because x.clone() returns a &[u8] instead of a [u8, ..1].
x.clone()
&[u8]
[u8, ..1]
The text was updated successfully, but these errors were encountered:
There isn't a Clone implementation for fixed-size arrays, and providing one is not possible.
Clone
Sorry, something went wrong.
This is covered by #7622.
Auto merge of rust-lang#18226 - SabrinaJewson:fix-impl-use, r=Veykril
e2c3ce5
Correctly parse `use` in generic parameters Fixes: rust-lang#18225
No branches or pull requests
The following code doesn't compile. It would be nice if it did.
This is because
x.clone()
returns a&[u8]
instead of a[u8, ..1]
.The text was updated successfully, but these errors were encountered: