]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/mismatched_types/closure-mismatch.nll.stderr
Rollup merge of #89945 - JohnTitor:we-now-specialize-clone-from-slice, r=the8472
[rust.git] / src / test / ui / mismatched_types / closure-mismatch.nll.stderr
index f29126e6afc76c7430e0896533fcf2510ab7516d..bd36fab92886dd600a168db9c7186504b286165b 100644 (file)
@@ -20,6 +20,11 @@ note: this closure does not fulfill the lifetime requirements
    |
 LL |     baz(|_| ());
    |         ^^^^^^
+note: the lifetime requirement is introduced here
+  --> $DIR/closure-mismatch.rs:5:11
+   |
+LL | fn baz<T: Foo>(_: T) {}
+   |           ^^^
 
 error: aborting due to 2 previous errors