// Test impls impl JSTraceable for SmallVec<[T; 1]> {} impl>> Handle { // Keep this. } impl Test where V: Clone, // This comment is NOT removed by formatting! { pub fn new(value: V) -> Self { Test { cloned_value: value.clone(), value, } } } impl X /* comment */ {} impl Y // comment { } impl Foo for T // comment1 where // comment2 // blah T: Clone, { } // #5941 impl T where (): Clone // Should not add comma to comment { } // #1823 default impl Trait for X {} default unsafe impl Trait for Y {} pub default unsafe impl Trait for Z {} // #2212 impl ConstWithDefault { default const CAN_RECONSTRUCT_QUERY_KEY: bool = false; }