about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCengiz Can <123910+cengizIO@users.noreply.github.com>2017-11-12 17:58:05 +0000
committerCengiz Can <123910+cengizIO@users.noreply.github.com>2017-11-12 17:58:05 +0000
commitf53fc572978b7a544bedeb819aa656f0aef96e11 (patch)
tree51c016ab6456d31174ed2d7609e3a2839209ad6d
parent17199713e8d3c820331780bf8baa99146ef90d8f (diff)
downloadrust-f53fc572978b7a544bedeb819aa656f0aef96e11.tar.gz
rust-f53fc572978b7a544bedeb819aa656f0aef96e11.zip
update project-fn-test-invariant test
-rw-r--r--src/test/compile-fail/associated-types/cache/project-fn-ret-invariant.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/associated-types/cache/project-fn-ret-invariant.rs b/src/test/compile-fail/associated-types/cache/project-fn-ret-invariant.rs
index 59688362197..6e4bdd4b21c 100644
--- a/src/test/compile-fail/associated-types/cache/project-fn-ret-invariant.rs
+++ b/src/test/compile-fail/associated-types/cache/project-fn-ret-invariant.rs
@@ -46,8 +46,8 @@ fn baz<'a,'b>(x: Type<'a>, y: Type<'b>) -> (Type<'a>, Type<'b>) {
 fn baz<'a,'b>(x: Type<'a>, y: Type<'b>) -> (Type<'a>, Type<'b>) {
    let f = foo; // <-- No consistent type can be inferred for `f` here.
    let a = bar(f, x);
-   let b = bar(f, y);
-   (a, b) //[oneuse]~ ERROR E0623
+   let b = bar(f, y); //[oneuse]~ ERROR 49:19: 49:20: lifetime mismatch [E0623]
+   (a, b)
 }
 
 #[cfg(transmute)] // one instantiations: BAD