Skip to content

Commit f53fc57

Browse files
committed
update project-fn-test-invariant test
1 parent 1719971 commit f53fc57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/compile-fail/associated-types/cache/project-fn-ret-invariant.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ fn baz<'a,'b>(x: Type<'a>, y: Type<'b>) -> (Type<'a>, Type<'b>) {
4646
fn baz<'a,'b>(x: Type<'a>, y: Type<'b>) -> (Type<'a>, Type<'b>) {
4747
let f = foo; // <-- No consistent type can be inferred for `f` here.
4848
let a = bar(f, x);
49-
let b = bar(f, y);
50-
(a, b) //[oneuse]~ ERROR E0623
49+
let b = bar(f, y); //[oneuse]~ ERROR 49:19: 49:20: lifetime mismatch [E0623]
50+
(a, b)
5151
}
5252

5353
#[cfg(transmute)] // one instantiations: BAD

0 commit comments

Comments
 (0)