]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/associated-types/bound-lifetime-constrained.func.stderr
Rollup merge of #76468 - SNCPlay42:lifetime-names, r=Mark-Simulacrum
[rust.git] / src / test / ui / associated-types / bound-lifetime-constrained.func.stderr
index c969baeaefeb7eba64acad62d6d049bcb51455d0..88d15a17199d90db01de17424417afb3eb63c2b2 100644 (file)
@@ -1,11 +1,11 @@
 error[E0581]: return type references lifetime `'a`, which is not constrained by the fn input types
-  --> $DIR/bound-lifetime-constrained.rs:26:50
+  --> $DIR/bound-lifetime-constrained.rs:16:50
    |
 LL | fn func1(_: for<'a> fn(<() as Foo<'a>>::Item) -> &'a i32) {
    |                                                  ^^^^^^^
 
 error[E0581]: return type references lifetime `'a`, which is not constrained by the fn input types
-  --> $DIR/bound-lifetime-constrained.rs:33:29
+  --> $DIR/bound-lifetime-constrained.rs:23:29
    |
 LL | fn func2(_: for<'a> fn() -> <() as Foo<'a>>::Item) {
    |                             ^^^^^^^^^^^^^^^^^^^^^