Test fallout

This commit is contained in:
Nick Cameron 2017-04-06 13:06:11 +12:00
parent f4952d3780
commit a7183766b9
4 changed files with 16 additions and 8 deletions

View File

@ -6,7 +6,7 @@ fn arrays() {
[ ];
let empty = [];
let foo = [a_long_name, a_very_lng_name, a_long_name, a_very_lng_name, a_long_name];
let foo = [a_long_name, a_very_lng_name, a_long_name];
let foo = [a_long_name, a_very_lng_name, a_long_name, a_very_lng_name, a_long_name, a_very_lng_name, a_long_name, a_very_lng_name];

View File

@ -6,7 +6,7 @@ fn arrays() {
[];
let empty = [];
let foo = [a_long_name, a_very_lng_name, a_long_name, a_very_lng_name, a_long_name];
let foo = [a_long_name, a_very_lng_name, a_long_name];
let foo = [
a_long_name,
@ -104,8 +104,12 @@ fn arrays() {
],
);
let z =
[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzzz, q];
let z = [
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
yyyyyyyyyyyyyyyyyyyyyyyyyyy,
zzzzzzzzzzzzzzzzz,
q,
];
[1 + 3, 4, 5, 6, 7, 7, fncall::<Vec<_>>(3 - 1)]
}

View File

@ -190,8 +190,10 @@ fn arrays() {
item: 3,
}]);
let z =
[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzzzz, q];
let z = [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
yyyyyyyyyyyyyyyyyyyyyyyyyyy,
zzzzzzzzzzzzzzzzzz,
q];
[1 + 3, 4, 5, 6, 7, 7, fncall::<Vec<_>>(3 - 1)]
}

View File

@ -57,8 +57,10 @@ fn foo(a: i32,
.go_to_next_line_with_tab()
.go_to_next_line_with_tab();
let z =
[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyyyyyyyyyyy, zzzzzzzzzzzzzzzzzz, q];
let z = [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
yyyyyyyyyyyyyyyyyyyyyyyyyyy,
zzzzzzzzzzzzzzzzzz,
q];
fn generic<T>(arg: T) -> &SomeType
where T: Fn(// First arg