]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/suggest-impl-trait-lifetime.stderr
Auto merge of #64925 - ehuss:document-json, r=Mark-Simulacrum
[rust.git] / src / test / ui / suggestions / suggest-impl-trait-lifetime.stderr
1 error[E0310]: the parameter type `impl Debug` may not live long enough
2   --> $DIR/suggest-impl-trait-lifetime.rs:7:5
3    |
4 LL |     bar(d);
5    |     ^^^
6    |
7 note: ...so that the type `impl Debug` will meet its required lifetime bounds
8   --> $DIR/suggest-impl-trait-lifetime.rs:7:5
9    |
10 LL |     bar(d);
11    |     ^^^
12 help: consider adding an explicit lifetime bound  `'static` to `impl Debug`...
13    |
14 LL | fn foo(d: impl Debug + 'static) {
15    |           ^^^^^^^^^^^^^^^^^^^^
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0310`.