1 error[E0310]: the parameter type `impl Debug` may not live long enough
2 --> $DIR/suggest-impl-trait-lifetime.rs:7:5
4 LL | fn foo(d: impl Debug) {
5 | ---------- help: consider adding an explicit lifetime bound...: `impl Debug + 'static`
8 | ^^^ ...so that the type `impl Debug` will meet its required lifetime bounds...
10 note: ...that is required by this bound
11 --> $DIR/suggest-impl-trait-lifetime.rs:12:24
13 LL | fn bar(d: impl Debug + 'static) {
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0310`.