#![allow(unused)] #![warn(clippy::impl_trait_in_params)] pub trait Trait {} // Should warn pub fn a(_: impl Trait) {} pub fn c(_: C, _: impl Trait) {} // Shouldn't warn pub fn b(_: B) {} fn d(_: D, _: impl Trait) {} fn main() {}