]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/mir_check_cast_reify.stderr
Auto merge of #105121 - oli-obk:simpler-cheaper-dump_mir, r=nnethercote
[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:35: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 error: aborting due to previous error
11