]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-fn-multiple-lifetimes.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / async-fn-multiple-lifetimes.stderr
1 error[E0709]: multiple different lifetimes used in arguments of `async fn`
2   --> $DIR/async-fn-multiple-lifetimes.rs:17:47
3    |
4 LL | async fn multiple_named_lifetimes<'a, 'b>(_: &'a u8, _: &'b u8) {}
5    |                                               ^^         ^^ different lifetime here
6    |                                               |
7    |                                               first lifetime here
8    |
9    = help: `async fn` can only accept borrowed values with identical lifetimes
10
11 error[E0707]: multiple elided lifetimes used in arguments of `async fn`
12   --> $DIR/async-fn-multiple-lifetimes.rs:26:39
13    |
14 LL | async fn multiple_elided_lifetimes(_: &u8, _: &u8) {}
15    |                                       ^       ^ different lifetime here
16    |                                       |
17    |                                       first lifetime here
18    |
19    = help: consider giving these arguments named lifetimes
20
21 error[E0106]: missing lifetime specifier
22   --> $DIR/async-fn-multiple-lifetimes.rs:26:39
23    |
24 LL | async fn multiple_elided_lifetimes(_: &u8, _: &u8) {}
25    |                                       ^ expected lifetime parameter
26    |
27    = help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from `_` or `_`
28
29 error: aborting due to 3 previous errors
30
31 Some errors occurred: E0106, E0707, E0709.
32 For more information about an error, try `rustc --explain E0106`.