error: `impl Trait` used as a function parameter | |
--> $DIR/impl_trait_in_params.rs:14:13 | |
| | |
LL | fn t(_: impl Trait); | |
| ^^^^^^^^^^ | |
| | |
= note: `-D clippy::impl-trait-in-params` implied by `-D warnings` | |
= help: to override `-D warnings` add `#[allow(clippy::impl_trait_in_params)]` | |
help: add a type parameter | |
| | |
LL | fn t<{ /* Generic name */ }: Trait>(_: impl Trait); | |
| +++++++++++++++++++++++++++++++ | |
error: aborting due to previous error | |