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
input.rs:
input.rs
extern "C" { #[link_name = "_ZN7MyClass26example_check_no_collisionE"] pub static mut MyClass_example_check_no_collision : * const :: std :: os :: raw :: c_int ; }
Run rustfmt on it:
rustfmt
$ rustup run nightly rustfmt --version 0.2.2-nightly ( ) $ rustup run nightly rustfmt < input.rs extern "C" { #[link_name = "_ZN7MyClass26example_check_no_collisionE"] pub static mut MyClass_example_check_no_collision: *const ::std::os::raw::c_int; }
Note that the link name attribute is not indented properly.
The text was updated successfully, but these errors were encountered:
Add a test for rust-lang#1914 and rust-lang#1915
34cf164
No branches or pull requests
input.rs
:Run
rustfmt
on it:Note that the link name attribute is not indented properly.
The text was updated successfully, but these errors were encountered: