summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/issue-92096.migrate.stderr
blob: c74161cd3e059fb3c642069e410269e845d6e76d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
error[E0311]: the parameter type `C` may not live long enough
  --> $DIR/issue-92096.rs:20:33
   |
LL | fn call_connect<C>(c: &'_ C) -> impl '_ + Future + Send
   |                                 ^^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `C` will meet its required lifetime bounds
   |
help: consider adding an explicit lifetime bound...
   |
LL |     C: Client + Send + Sync + 'a,
   |                             ++++

error[E0311]: the parameter type `C` may not live long enough
  --> $DIR/issue-92096.rs:20:33
   |
LL | fn call_connect<C>(c: &'_ C) -> impl '_ + Future + Send
   |                                 ^^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `C` will meet its required lifetime bounds
   |
help: consider adding an explicit lifetime bound...
   |
LL |     C: Client + Send + Sync + 'a,
   |                             ++++

error: aborting due to 2 previous errors