mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
move ERROR line
This commit is contained in:
parent
cb26a25d4b
commit
a43377773f
@ -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() {}
|
||||
|
Loading…
Reference in New Issue
Block a user