1error[E0759]: `x` has lifetime `'a` but it needs to satisfy a `'static` lifetime requirement
2  --> $DIR/dyn-trait.rs:20:16
3   |
4LL | fn with_dyn_debug_static<'a>(x: Box<dyn Debug + 'a>) {
5   |                                 ------------------- this data with lifetime `'a`...
6LL |     static_val(x);
7   |                ^ ...is captured here...
8   |
9note: ...and is required to live as long as `'static` here
10  --> $DIR/dyn-trait.rs:20:5
11   |
12LL |     static_val(x);
13   |     ^^^^^^^^^^
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0759`.
18