Last active
October 19, 2018 23:31
-
-
Save apiraino/aadb133a9d321d06fc14abff012b0a7f to your computer and use it in GitHub Desktop.
Test case for https://github.com/rust-lang/rust-mode/pull/269
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Foo {} | |
impl Bar for Foo { | |
fn dummy_spacer() -> bool { | |
false | |
} | |
fn dummy_spacer() -> bool { | |
false | |
} | |
fn dummy_spacer() -> bool { | |
false | |
} | |
fn dummy_spacer() -> bool { | |
false | |
} | |
fn dummy_spacer() -> bool { | |
false | |
} | |
fn dummy_spacer() -> bool { | |
false | |
} | |
fn dummy_spacer() -> bool { | |
false | |
} | |
fn dummy_spacer() -> bool { | |
false | |
} | |
fn dummy_spacer() -> bool { | |
false | |
} | |
fn dummy_spacer() -> bool { | |
false | |
} | |
fn dummy_spacer() -> bool { | |
false | |
} | |
// 1) place cursor here | |
// 2) center file on cursor (C-l) | |
// 3) reformat the function moving "param1: String," next to "&self" | |
/* | |
fn test_function( | |
&self, param1: String, | |
param2: String, | |
param3: String, | |
param4: String, | |
... | |
*/ | |
// 4) save file | |
fn test_function( | |
&self, | |
param1: String, | |
param2: String, | |
param3: String, | |
param4: String, | |
) -> bool { | |
false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment