Skip to content

Commit a18ce4d

Browse files
committed
fixed errors in test code
1 parent 6e19cfa commit a18ce4d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/test/run-pass/issue-25180.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@
1010

1111
// pretty-expanded FIXME #25180
1212

13-
const empty: &'static Fn() = &|| println!("ICE here");
13+
const EMPTY: &'static Fn() = &|| println!("ICE here");
1414

15-
const one_argument: &'static Fn(u32) = &|y| println("{}", y);
15+
const ONE_ARGUMENT: &'static Fn(u32) = &|y| println!("{}", y);
1616

17-
const plus_21: &'static Fn(u32) -> u32 = |y| y + 21;
17+
const PLUS_21: &'static (Fn(u32) -> u32) = &|y| y + 21;
1818

19-
const multi_and_local: &'static Fn(u32, u32) -> u32 = |x, y| {
19+
const MULTI_AND_LOCAL: &'static (Fn(u32, u32) -> u32) = &|x, y| {
2020
let tmp = x + y;
21-
tmp * 2;
21+
tmp * 2
2222
};
2323

2424
pub fn main() {
25-
empty();
26-
one_argument(42);
27-
assert!(plus_21(21) == 42);
28-
assert!(multi_and_local(1, 2) == 6);
25+
EMPTY();
26+
ONE_ARGUMENT(42);
27+
assert!(PLUS_21(21) == 42);
28+
assert!(MULTI_AND_LOCAL(1, 2) == 6);
2929
}
3030

0 commit comments

Comments
 (0)