2017-01-15 19:50:27 -06:00
|
|
|
// rustfmt-normalize_comments: true
|
2016-04-01 16:59:35 -05:00
|
|
|
// rustfmt-fn_args_layout: Block
|
|
|
|
|
2016-04-01 18:25:35 -05:00
|
|
|
fn foo() {
|
|
|
|
foo();
|
|
|
|
}
|
2016-04-01 16:59:35 -05:00
|
|
|
|
|
|
|
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) {
|
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb, c: Cccccccccccccccccc, d: Dddddddddddddddd, e: Eeeeeeeeeeeeeee) {
|
|
|
|
bar();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) -> String {
|
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb, c: Cccccccccccccccccc, d: Dddddddddddddddd, e: Eeeeeeeeeeeeeee) -> String {
|
|
|
|
bar();
|
|
|
|
}
|
|
|
|
|
2016-04-07 14:01:16 -05:00
|
|
|
fn foo(a: u8 /* Comment 1 */, b: u8 /* Comment 2 */) -> u8 {
|
|
|
|
bar()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo(a: u8 /* Comment 1 */, b: Bbbbbbbbbbbbbb, c: Cccccccccccccccccc, d: Dddddddddddddddd, e: Eeeeeeeeeeeeeee /* Comment 2 */) -> u8 {
|
|
|
|
bar()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb, c: Cccccccccccccccccc, d: Dddddddddddddddd, e: Eeeeeeeeeeeeeee) -> String where X: Fooooo, Y: Baaar {
|
|
|
|
bar();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo() -> T {
|
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo() -> T where X: Foooo, Y: Baaar {
|
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo() where X: Foooo {
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo() where X: Foooo, Y: Baaar {
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo() -> (Loooooooooooooooooooooong, Reeeeeeeeeeeeeeeeeeeeeeeeturn, iiiiiiiiis, Looooooooooooooooong) {
|
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo<g: G>() {
|
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo<L: Loooooooooooooooooooooong, G: Geeeeeeeeeeeneric, I: iiiiiiiiis, L: Looooooooooooooooong>() {
|
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo<L: Loooooooooooooooooooong, G: Geeeeeeeeeeneric, I: iiiiiiiiis, L: Loooooooooooooooong>() {
|
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
2016-04-01 16:59:35 -05:00
|
|
|
trait Test {
|
|
|
|
fn foo(a: u8) {}
|
|
|
|
|
2016-04-07 14:01:16 -05:00
|
|
|
fn bar(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb, c: Cccccccccccccccccc, d: Dddddddddddddddd, e: Eeeeeeeeeeeeeee) -> String {}
|
2016-04-01 16:59:35 -05:00
|
|
|
}
|
2016-04-07 14:24:30 -05:00
|
|
|
|
|
|
|
fn foo<L: Loooooooooooooooooooong, G: Geeeeeeeeeeneric, I: iiiiiiiiis, L: Loooooooooooooooong>(a: Aaaaaaaaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbbbbb, c: Cccccccccccccccccc, d: Dddddddddddddddd) {
|
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo() -> (Looooooooooooooooooooooooooong, Reeeeeeeeeeeeeeeeeeeeeeeeeeeeeturn, iiiiiiiiiiiiiis, Loooooooooooooooooooooong) {
|
|
|
|
foo();
|
|
|
|
}
|