summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-types/bound-lifetime-constrained.func.stderr
blob: 88d15a17199d90db01de17424417afb3eb63c2b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0581]: return type references lifetime `'a`, which is not constrained by the fn input types
  --> $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:23:29
   |
LL | fn func2(_: for<'a> fn() -> <() as Foo<'a>>::Item) {
   |                             ^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0581`.