1 #![deny(clippy::type_repetition_in_bounds)]
3 use std::ops::{Add, AddAssign, Div, DivAssign, Mul, MulAssign, Sub, SubAssign};
13 pub fn bar<T, U>(_t: T, _u: U)
21 // Threshold test (see #4380)
25 Self: Copy + Default + Ord,
26 Self: Add<Output = Self> + AddAssign + Sub<Output = Self> + SubAssign,
27 Self: Mul<Output = Self> + MulAssign + Div<Output = Self> + DivAssign,
33 Self: Clone + Copy + Default + Ord,
34 Self: Add<Output = Self> + AddAssign + Sub<Output = Self> + SubAssign,
35 Self: Mul<Output = Self> + MulAssign + Div<Output = Self> + DivAssign,
39 // Generic distinction (see #4323)
42 pub struct Bar<A, B> {
47 impl<A, B> Unpin for Bar<A, B>
55 // Extern macros shouldn't lint (see #4326)
58 use serde::{Deserialize, Serialize};
61 impl Foo for String {}
63 #[derive(Debug, Serialize, Deserialize)]