rust/tests/ui/suggestions/suggest-impl-trait-lifetime.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
472 B
Plaintext
Raw Normal View History

error[E0310]: the parameter type `impl Debug` may not live long enough
2022-04-01 17:13:25 +00:00
--> $DIR/suggest-impl-trait-lifetime.rs:7:5
|
LL | bar(d);
2022-04-01 17:13:25 +00:00
| ^^^^^^ ...so that the type `impl Debug` will meet its required lifetime bounds
|
2022-03-14 14:56:37 +00:00
help: consider adding an explicit lifetime bound...
|
LL | fn foo(d: impl Debug + 'static) {
| +++++++++
error: aborting due to previous error
For more information about this error, try `rustc --explain E0310`.