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" }
28 fn fooblock2(x: i32) {
35 // this is a test comment
49 fn aaaaaaaaaaaaaaaaa_looooooooooooooooooooooong_name() {
50 let z = "aaaaaaawwwwwwwwwwwwwwwwwwwwwwwwwwww";
53 fn lots_of_space() { 1 }
55 fn mac() -> Vec<i32> { vec![] }
65 fn Foo<T>() where T: Bar {}