summaryrefslogtreecommitdiffstats
path: root/tests/ui/lifetimes/issue-69314.stderr
blob: 7ae6789285baa9f7f3b5ca7fd3baab41456c309d (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
25
26
error[E0726]: implicit elided lifetime not allowed here
  --> $DIR/issue-69314.rs:18:20
   |
LL |     async fn f2(m: Msg) {}
   |                    ^^^ expected lifetime parameter
   |
help: indicate the anonymous lifetime
   |
LL |     async fn f2(m: Msg<'_>) {}
   |                       ++++

error[E0597]: `buf` does not live long enough
  --> $DIR/issue-69314.rs:14:19
   |
LL |         let m2 = &buf[..];
   |                   ^^^ borrowed value does not live long enough
LL |         let m = Self::g(m2).await;
   |                 ----------- argument requires that `buf` is borrowed for `'static`
LL |         Self::f2(m).await;
LL |     }
   |     - `buf` dropped here while still borrowed

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0597, E0726.
For more information about an error, try `rustc --explain E0597`.