fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0726]: implicit elided lifetime not allowed here 2 --> $DIR/issue-69314.rs:18:20 3 | 4LL | async fn f2(m: Msg) {} 5 | ^^^ expected lifetime parameter 6 | 7help: indicate the anonymous lifetime 8 | 9LL | async fn f2(m: Msg<'_>) {} 10 | ++++ 11 12error[E0597]: `buf` does not live long enough 13 --> $DIR/issue-69314.rs:14:19 14 | 15LL | let mut buf = [0; 512]; 16 | ------- binding `buf` declared here 17LL | let m2 = &buf[..]; 18 | ^^^ borrowed value does not live long enough 19LL | let m = Self::g(m2).await; 20 | ----------- argument requires that `buf` is borrowed for `'static` 21LL | Self::f2(m).await; 22LL | } 23 | - `buf` dropped here while still borrowed 24 25error: aborting due to 2 previous errors 26 27Some errors have detailed explanations: E0597, E0726. 28For more information about an error, try `rustc --explain E0597`.