1error: lifetime may not live long enough 2 --> tests/ui/lifetime-defined-here.rs:12:49 3 | 412 | 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 9error: lifetime may not live long enough 10 --> tests/ui/lifetime-defined-here.rs:12:49 11 | 1212 | 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 17error: lifetime may not live long enough 18 --> tests/ui/lifetime-defined-here.rs:12:49 19 | 2012 | 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 25help: 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` 30