We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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 compiles, surprisingly:
let x: Option<&[u8]> = Some("foo").map(std::cast::transmute);
The coercion of std::cast::transmute to &fn should only be allowed inside an unsafe block.
std::cast::transmute
&fn
unsafe
The text was updated successfully, but these errors were encountered:
Nominating for the backwards compatible milestone. This doesn't seem like it would be very hard to fix though, just an oversight.
Sorry, something went wrong.
cc me
This seems like it's a bug in the type system impl of coercion
1.0, high
auto merge of #11605 : alexcrichton/rust/issue-9582, r=brson
88dd987
Closes #9582
afa392a
Successfully merging a pull request may close this issue.
The following code compiles, surprisingly:
The coercion of
std::cast::transmute
to&fn
should only be allowed inside anunsafe
block.The text was updated successfully, but these errors were encountered: