]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-92096.migrate.stderr
Rollup merge of #104024 - noeddl:unused-must-use, r=compiler-errors
[rust.git] / src / test / ui / generic-associated-types / issue-92096.migrate.stderr
1 error[E0311]: the parameter type `C` may not live long enough
2   --> $DIR/issue-92096.rs:19:33
3    |
4 LL | fn call_connect<C>(c: &'_ C) -> impl '_ + Future + Send
5    |                                 ^^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `C` will meet its required lifetime bounds
6    |
7 help: consider adding an explicit lifetime bound...
8    |
9 LL |     C: Client + Send + Sync + 'a,
10    |                             ++++
11
12 error[E0311]: the parameter type `C` may not live long enough
13   --> $DIR/issue-92096.rs:19:33
14    |
15 LL | fn call_connect<C>(c: &'_ C) -> impl '_ + Future + Send
16    |                                 ^^^^^^^^^^^^^^^^^^^^^^^ ...so that the type `C` will meet its required lifetime bounds
17    |
18 help: consider adding an explicit lifetime bound...
19    |
20 LL |     C: Client + Send + Sync + 'a,
21    |                             ++++
22
23 error: aborting due to 2 previous errors
24