1 // rustfmt-fn_single_line: true
2 // Test single-line functions.
6 fn foo_stmt() { foo(); }
8 fn foo_decl_local() { let z = 5; }
10 fn foo_decl_item(x: &mut i32) { x = 3; }
14 fn foo_return() -> String { "yay" }
29 fn fooblock2(x: i32) {
36 // this is a test comment
50 fn aaaaaaaaaaaaaaaaa_looooooooooooooooooooooong_name() {
51 let z = "aaaaaaawwwwwwwwwwwwwwwwwwwwwwwwwwww";
54 fn lots_of_space() { 1 }
56 fn mac() -> Vec<i32> { vec![] }