]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/implied_bounds_closure.stderr
Auto merge of #106503 - cjgillot:remap-nofilter, r=oli-obk
[rust.git] / tests / ui / type-alias-impl-trait / implied_bounds_closure.stderr
1 error: lifetime may not live long enough
2   --> $DIR/implied_bounds_closure.rs:17:16
3    |
4 LL | fn extend_lifetime<'a>(x: &'a str) -> &'static str {
5    |                    -- lifetime `'a` defined here
6 LL |     let t = into_impl(x);
7 LL |     helper(|_| t)
8    |                ^ returning this value requires that `'a` must outlive `'static`
9
10 error: aborting due to previous error
11