1 error: borrowed data escapes outside of function
2 --> $DIR/dyn-trait.rs:32:5
4 LL | fn with_dyn_debug_static<'a>(x: Box<dyn Debug + 'a>) {
5 | - `x` is a reference that is only valid in the function body
6 LL | static_val(x); //~ ERROR cannot infer
7 | ^^^^^^^^^^^^^ `x` escapes the function body here
9 error: aborting due to previous error