]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/long-fn-1/version_one.rs
:arrow_up: rust-analyzer
[rust.git] / src / tools / rustfmt / tests / target / long-fn-1 / version_one.rs
1 // rustfmt-version: One
2 // Tests that a function which is almost short enough, but not quite, gets
3 // formatted correctly.
4
5 impl Foo {
6     fn some_input(
7         &mut self,
8         input: Input,
9         input_path: Option<PathBuf>,
10     ) -> (Input, Option<PathBuf>) {
11     }
12
13     fn some_inpu(&mut self, input: Input, input_path: Option<PathBuf>) -> (Input, Option<PathBuf>) {
14     }
15 }
16
17 // #1843
18 #[allow(non_snake_case)]
19 pub extern "C" fn Java_com_exonum_binding_storage_indices_ValueSetIndexProxy_nativeContainsByHash(
20 ) -> bool {
21     false
22 }
23
24 // #3009
25 impl Something {
26     fn my_function_name_is_way_to_long_but_used_as_a_case_study_or_an_example_its_fine(
27     ) -> Result<(), String> {
28     }
29 }