]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/async-fn-multiple-lifetimes.stderr
Rollup merge of #60897 - seanmonstar:patch-4, r=sfackler
[rust.git] / src / test / ui / async-await / async-fn-multiple-lifetimes.stderr
1 error: ambiguous lifetime bound in `async fn`
2   --> $DIR/async-fn-multiple-lifetimes.rs:7:65
3    |
4 LL | async fn multiple_named_lifetimes<'a, 'b>(_: &'a u8, _: &'b u8) {}
5    |                                                                 ^ neither `'a` nor `'b` outlives the other
6    |
7    = note: multiple unrelated lifetimes are not allowed in `async fn`.
8    = note: if you're using argument-position elided lifetimes, consider switching to a single named lifetime.
9
10 error: ambiguous lifetime bound in `async fn`
11   --> $DIR/async-fn-multiple-lifetimes.rs:16:52
12    |
13 LL | async fn multiple_elided_lifetimes(_: &u8, _: &u8) {}
14    |                                                    ^ the elided lifetimes here do not outlive one another
15    |
16    = note: multiple unrelated lifetimes are not allowed in `async fn`.
17    = note: if you're using argument-position elided lifetimes, consider switching to a single named lifetime.
18
19 error: aborting due to 2 previous errors
20