1 // rustfmt-fn_single_line: true
2 // rustfmt-version: Two
3 // Test single-line functions.
17 fn foo_decl_item(x: &mut i32) {
25 fn foo_return() -> String {
29 fn foo_where() -> T where T: Sync {
39 fn fooblock2(x: i32) {
46 // this is a test comment
60 fn aaaaaaaaaaaaaaaaa_looooooooooooooooooooooong_name() {
61 let z = "aaaaaaawwwwwwwwwwwwwwwwwwwwwwwwwwww";
68 fn mac() -> Vec<i32> { vec![] }
75 trait CoolerTypes { fn dummy(&self) {
79 fn Foo<T>() where T: Bar {