]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/mir_check_cast_reify.stderr
Fix tests
[rust.git] / src / test / ui / nll / mir_check_cast_reify.stderr
1 error: unsatisfied lifetime constraints
2   --> $DIR/mir_check_cast_reify.rs:46:25
3    |
4 LL | fn bar<'a>(x: &'a u32) -> &'static u32 {
5    |        -- lifetime `'a` defined here
6 ...
7 LL |     let f: fn(_) -> _ = foo;
8    |                         ^^^ cast requires that `'a` must outlive `'static`
9
10 error: aborting due to previous error
11