]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/suggest-impl-trait-lifetime.stderr
Rollup merge of #107632 - ameknite:issue-107622-fix, r=jyn514
[rust.git] / tests / 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    |     ^^^^^^ ...so that the type `impl Debug` will meet its required lifetime bounds
6    |
7 help: consider adding an explicit lifetime bound...
8    |
9 LL | fn foo(d: impl Debug + 'static) {
10    |                      +++++++++
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0310`.