2018-08-07 15:48:50 -05:00
|
|
|
error: unsatisfied lifetime constraints
|
2018-09-06 21:57:05 -05:00
|
|
|
--> $DIR/mir_check_cast_reify.rs:46:25
|
2018-07-26 00:21:35 -05:00
|
|
|
|
|
|
|
|
LL | fn bar<'a>(x: &'a u32) -> &'static u32 {
|
2018-08-07 15:48:50 -05:00
|
|
|
| -- lifetime `'a` defined here
|
2018-07-26 00:21:35 -05:00
|
|
|
...
|
2018-09-06 21:57:05 -05:00
|
|
|
LL | let f: fn(_) -> _ = foo;
|
|
|
|
| ^^^ cast requires that `'a` must outlive `'static`
|
2018-07-26 00:21:35 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|