]> git.proxmox.com Git - rustc.git/blob - src/test/ui/nll/mir_check_cast_reify.stderr
New upstream version 1.41.1+dfsg1
[rustc.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