fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

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