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