Debian Codegraph @

third_party/rust/async-trait/tests/ui/lifetime-defined-here.stderr

raw
1 error: lifetime may not live long enough
2 --> tests/ui/lifetime-defined-here.rs:12:49
3 |
4 12 | async fn bar(&self, x: &str, y: &'_ str) -> &'static str {
5 | - ^^^^^^^^^^^^ type annotation requires that `'life0` must outlive `'static`
6 | |
7 | lifetime `'life0` defined here
8
9 error: lifetime may not live long enough
10 --> tests/ui/lifetime-defined-here.rs:12:49
11 |
12 12 | async fn bar(&self, x: &str, y: &'_ str) -> &'static str {
13 | - ^^^^^^^^^^^^ type annotation requires that `'life1` must outlive `'static`
14 | |
15 | lifetime `'life1` defined here
16
17 error: lifetime may not live long enough
18 --> tests/ui/lifetime-defined-here.rs:12:49
19 |
20 12 | async fn bar(&self, x: &str, y: &'_ str) -> &'static str {
21 | -- ^^^^^^^^^^^^ type annotation requires that `'life2` must outlive `'static`
22 | |
23 | lifetime `'life2` defined here
24
25 help: the following changes may resolve your lifetime errors
26 |
27 = help: replace `'life0` with `'static`
28 = help: replace `'life1` with `'static`
29 = help: replace `'life2` with `'static`