Skip to content

Commit 2589f4a

Browse files
committed
Fix indentation in test.
1 parent b8b8980 commit 2589f4a

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/test/run-pass/mir_adt_construction.rs

+14-14
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ enum CEnum {
1717
}
1818

1919
fn test1(c: CEnum) -> i32 {
20-
let c2 = CEnum::Hello;
21-
match (c, c2) {
22-
(CEnum::Hello, CEnum::Hello) => 42,
23-
(CEnum::World, CEnum::Hello) => 0,
24-
_ => 1
25-
}
20+
let c2 = CEnum::Hello;
21+
match (c, c2) {
22+
(CEnum::Hello, CEnum::Hello) => 42,
23+
(CEnum::World, CEnum::Hello) => 0,
24+
_ => 1
25+
}
2626
}
2727

2828
#[repr(packed)]
@@ -90,12 +90,12 @@ fn test5(x: fn(u32) -> Option<u32>) -> (Option<u32>, Option<u32>) {
9090
}
9191

9292
fn main() {
93-
assert_eq!(test1(CEnum::Hello), 42);
94-
assert_eq!(test1(CEnum::World), 0);
95-
assert_eq!(test2(), Pakd { a: 42, b: 42, c: 42, d: 42, e: () });
96-
assert_eq!(test3(), TupleLike(42, 42));
97-
let t4 = test4(TupleLike);
98-
assert_eq!(t4.0, t4.1);
99-
let t5 = test5(Some);
100-
assert_eq!(t5.0, t5.1);
93+
assert_eq!(test1(CEnum::Hello), 42);
94+
assert_eq!(test1(CEnum::World), 0);
95+
assert_eq!(test2(), Pakd { a: 42, b: 42, c: 42, d: 42, e: () });
96+
assert_eq!(test3(), TupleLike(42, 42));
97+
let t4 = test4(TupleLike);
98+
assert_eq!(t4.0, t4.1);
99+
let t5 = test5(Some);
100+
assert_eq!(t5.0, t5.1);
101101
}

0 commit comments

Comments
 (0)