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.
&raw (place)
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
pub fn some_fn(&self) -> u32 { unsafe { &raw (*self.as_ptr()) } }
when formatted becomes:
pub fn some_fn(&self) -> u32 { unsafe { &raw(*self.as_ptr()) } }
this makes it look like raw is a function, which doesn't exist and won't compile.
raw
The text was updated successfully, but these errors were encountered:
Is there a tracking issue you can link to? I'm not familiar with raw places.
Edit: I think this is the tracking issue, and it looks like this was stabilized recently.
Sorry, something went wrong.
@antonio-hickey does this compile before formatting?
Maybe you meant to write &raw const or &raw mut?
&raw const
&raw mut
Yes, &raw const in which case works fine.
Thanks
No branches or pull requests
when formatted becomes:
this makes it look like
raw
is a function, which doesn't exist and won't compile.The text was updated successfully, but these errors were encountered: