From a43377773f3b38e4f521964a3b519f97f50fc3e4 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Fri, 30 Jun 2017 05:11:28 -0400 Subject: [PATCH] move ERROR line --- src/test/compile-fail/E0495.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/compile-fail/E0495.rs b/src/test/compile-fail/E0495.rs index 55871a90f23..980461bedae 100644 --- a/src/test/compile-fail/E0495.rs +++ b/src/test/compile-fail/E0495.rs @@ -21,8 +21,8 @@ fn invoke<'a, F>(x: &'a i32, f: F) -> &'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() {} -- GitLab