]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/mir_check_cast_reify.stderr
Auto merge of #67060 - Centril:rollup-hwhdx4h, r=Centril
[rust.git] / src / test / ui / nll / mir_check_cast_reify.stderr
1 error: lifetime may not live long enough
2   --> $DIR/mir_check_cast_reify.rs:37:5
3    |
4 LL | fn bar<'a>(x: &'a u32) -> &'static u32 {
5    |        -- lifetime `'a` defined here
6 ...
7 LL |     f(x)
8    |     ^^^^ returning this value requires that `'a` must outlive `'static`
9    |
10    = help: consider replacing `'a` with `'static`
11
12 error: aborting due to previous error
13