Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
move ERROR line
  • Loading branch information
nikomatsakis committed Jun 30, 2017
1 parent cb26a25 commit a433777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/compile-fail/E0495.rs
Expand Up @@ -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() {}

0 comments on commit a433777

Please sign in to comment.