move ERROR line

This commit is contained in:
Niko Matsakis 2017-06-30 05:11:28 -04:00 committed by GitHub
parent cb26a25d4b
commit a43377773f

View File

@ -21,8 +21,8 @@ where F: FnOnce(&'a i32, &i32) -> &'a i32
f(x, &y)
}
fn foo<'a>(x: &'a i32) { //~ ERROR E0495
invoke(&x, |a, b| if a > b { a } else { b });
fn foo<'a>(x: &'a i32) {
invoke(&x, |a, b| if a > b { a } else { b }); //~ ERROR E0495
}
fn main() {}