blob: c6e5fb397b9e6d09460b922eccf3de90240dd385 [file] [log] [blame]
warning: not reporting region error due to nll
--> $DIR/mir_check_cast_reify.rs:46:25
|
LL | let f: fn(_) -> _ = foo;
| ^^^
error: unsatisfied lifetime constraints
--> $DIR/mir_check_cast_reify.rs:48:5
|
LL | fn bar<'a>(x: &'a u32) -> &'static u32 {
| -- lifetime `'a` defined here
...
LL | f(x)
| ^^^^ returning this value requires that `'a` must outlive `'static`
error: aborting due to previous error