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