1 error: lifetime may not live long enough
2 --> $DIR/mir_check_cast_unsize.rs:6:5
4 LL | fn bar<'a>(x: &'a u32) -> &'static dyn Debug {
5 | -- lifetime `'a` defined here
7 | ^ returning this value requires that `'a` must outlive `'static`
9 help: to declare that the trait object captures data from argument `x`, you can add an explicit `'a` lifetime bound
11 LL | fn bar<'a>(x: &'a u32) -> &'static dyn Debug + 'a {
14 error: aborting due to previous error