]> git.lizzy.rs Git - rust.git/blob - tests/source/long-fn-1.rs
Add a test for #3009
[rust.git] / tests / source / long-fn-1.rs
1 // Tests that a function which is almost short enough, but not quite, gets
2 // formatted correctly.
3
4 impl Foo {
5     fn some_input(&mut self, input: Input, input_path: Option<PathBuf>, ) -> (Input, Option<PathBuf>) {}
6
7     fn some_inpu(&mut self, input: Input, input_path: Option<PathBuf>) -> (Input, Option<PathBuf>) {}
8 }
9
10 // #1843
11 #[allow(non_snake_case)]
12 pub extern "C" fn Java_com_exonum_binding_storage_indices_ValueSetIndexProxy_nativeContainsByHash() -> bool {
13     false
14 }
15
16 // #3009
17 impl Something {
18     fn my_function_name_is_way_to_long_but_used_as_a_case_study_or_an_example_its_fine(
19 ) -> Result<  (), String  > {}
20 }