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
|
|
|
|
2016-04-07 14:01:16 -05:00
|
|
|
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) {
|
2016-04-01 16:59:35 -05:00
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar(
|
|
|
|
a: Aaaaaaaaaaaaaa,
|
|
|
|
b: Bbbbbbbbbbbbbb,
|
|
|
|
c: Cccccccccccccccccc,
|
|
|
|
d: Dddddddddddddddd,
|
2017-03-08 19:47:29 -06:00
|
|
|
e: Eeeeeeeeeeeeeee,
|
2016-04-01 16:59:35 -05:00
|
|
|
) {
|
|
|
|
bar();
|
|
|
|
}
|
|
|
|
|
2016-04-07 14:01:16 -05:00
|
|
|
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) -> String {
|
2016-04-01 16:59:35 -05:00
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar(
|
|
|
|
a: Aaaaaaaaaaaaaa,
|
|
|
|
b: Bbbbbbbbbbbbbb,
|
|
|
|
c: Cccccccccccccccccc,
|
|
|
|
d: Dddddddddddddddd,
|
2017-03-08 19:47:29 -06:00
|
|
|
e: Eeeeeeeeeeeeeee,
|
2016-04-01 16:59:35 -05:00
|
|
|
) -> 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,
|
2017-03-08 19:47:29 -06:00
|
|
|
e: Eeeeeeeeeeeeeee, // Comment 2
|
2016-04-07 14:01:16 -05:00
|
|
|
) -> u8 {
|
|
|
|
bar()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar(
|
|
|
|
a: Aaaaaaaaaaaaaa,
|
|
|
|
b: Bbbbbbbbbbbbbb,
|
|
|
|
c: Cccccccccccccccccc,
|
|
|
|
d: Dddddddddddddddd,
|
2017-03-08 19:47:29 -06:00
|
|
|
e: Eeeeeeeeeeeeeee,
|
2016-04-07 14:01:16 -05:00
|
|
|
) -> String
|
2017-06-11 23:01:41 -05:00
|
|
|
where
|
|
|
|
X: Fooooo,
|
|
|
|
Y: Baaar,
|
2016-04-07 14:01:16 -05:00
|
|
|
{
|
|
|
|
bar();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo() -> T {
|
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo() -> T
|
2017-06-11 23:01:41 -05:00
|
|
|
where
|
|
|
|
X: Foooo,
|
|
|
|
Y: Baaar,
|
2016-04-07 14:01:16 -05:00
|
|
|
{
|
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
2017-06-11 23:01:41 -05:00
|
|
|
fn foo()
|
|
|
|
where
|
|
|
|
X: Foooo,
|
|
|
|
{
|
|
|
|
}
|
2016-04-07 14:01:16 -05:00
|
|
|
|
|
|
|
fn foo()
|
2017-06-11 23:01:41 -05:00
|
|
|
where
|
|
|
|
X: Foooo,
|
|
|
|
Y: Baaar,
|
2016-04-07 14:01:16 -05:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2017-06-11 23:01:41 -05:00
|
|
|
fn foo()
|
2017-06-13 19:30:04 -05:00
|
|
|
-> (
|
|
|
|
Loooooooooooooooooooooong,
|
|
|
|
Reeeeeeeeeeeeeeeeeeeeeeeeturn,
|
|
|
|
iiiiiiiiis,
|
|
|
|
Looooooooooooooooong,
|
|
|
|
)
|
2016-04-07 14:01:16 -05:00
|
|
|
{
|
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo<g: G>() {
|
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
2017-06-14 06:39:07 -05:00
|
|
|
fn foo<
|
|
|
|
L: Loooooooooooooooooooooong,
|
|
|
|
G: Geeeeeeeeeeeneric,
|
|
|
|
I: iiiiiiiiis,
|
|
|
|
L: Looooooooooooooooong,
|
|
|
|
>() {
|
2016-04-07 14:01:16 -05:00
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo<L: Loooooooooooooooooooong, G: Geeeeeeeeeeneric, I: iiiiiiiiis, L: Loooooooooooooooong>() {
|
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
2016-04-01 16:59:35 -05:00
|
|
|
trait Test {
|
2016-04-07 14:01:16 -05:00
|
|
|
fn foo(a: u8) {}
|
2016-04-01 16:59:35 -05:00
|
|
|
|
|
|
|
fn bar(
|
2016-04-07 14:01:16 -05:00
|
|
|
a: Aaaaaaaaaaaaaa,
|
|
|
|
b: Bbbbbbbbbbbbbb,
|
|
|
|
c: Cccccccccccccccccc,
|
|
|
|
d: Dddddddddddddddd,
|
2017-03-08 19:47:29 -06:00
|
|
|
e: Eeeeeeeeeeeeeee,
|
2016-04-01 16:59:35 -05:00
|
|
|
) -> String {
|
|
|
|
}
|
|
|
|
}
|
2016-04-07 14:24:30 -05:00
|
|
|
|
|
|
|
fn foo<L: Loooooooooooooooooooong, G: Geeeeeeeeeeneric, I: iiiiiiiiis, L: Loooooooooooooooong>(
|
|
|
|
a: Aaaaaaaaaaaaaaaaaaaa,
|
|
|
|
b: Bbbbbbbbbbbbbbbbb,
|
|
|
|
c: Cccccccccccccccccc,
|
2017-03-08 19:47:29 -06:00
|
|
|
d: Dddddddddddddddd,
|
2016-04-07 14:24:30 -05:00
|
|
|
) {
|
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo()
|
2017-06-13 19:30:04 -05:00
|
|
|
-> (
|
|
|
|
Looooooooooooooooooooooooooong,
|
|
|
|
Reeeeeeeeeeeeeeeeeeeeeeeeeeeeeturn,
|
|
|
|
iiiiiiiiiiiiiis,
|
|
|
|
Loooooooooooooooooooooong,
|
|
|
|
)
|
2016-04-07 14:24:30 -05:00
|
|
|
{
|
|
|
|
foo();
|
|
|
|
}
|