Skip to content

Commit a433777

Browse files
authored
move ERROR line
1 parent cb26a25 commit a433777

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/compile-fail/E0495.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ where F: FnOnce(&'a i32, &i32) -> &'a i32
2121
f(x, &y)
2222
}
2323

24-
fn foo<'a>(x: &'a i32) { //~ ERROR E0495
25-
invoke(&x, |a, b| if a > b { a } else { b });
24+
fn foo<'a>(x: &'a i32) {
25+
invoke(&x, |a, b| if a > b { a } else { b }); //~ ERROR E0495
2626
}
2727

2828
fn main() {}

0 commit comments

Comments
 (0)